@extscreen/es-core 10000.0.14 → 10000.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +29 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1765,13 +1765,21 @@ class ESLaunchManager {
|
|
1765
1765
|
_ESRouterEnabled = true;
|
1766
1766
|
|
1767
1767
|
init(router) {
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
ESLog.
|
1772
|
-
'
|
1773
|
-
|
1774
|
-
|
1768
|
+
try {
|
1769
|
+
this._ESRouter = router;
|
1770
|
+
this._ESRouterEnabled = this.isESRouterSupported();
|
1771
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1772
|
+
ESLog.d('ESRouter', '#------init--------->>' + '\n' +
|
1773
|
+
'_ESRouterEnabled: ' + this._ESRouterEnabled + '\n' +
|
1774
|
+
'_ESRouter: ' + this._ESRouter
|
1775
|
+
);
|
1776
|
+
}
|
1777
|
+
} catch (e) {
|
1778
|
+
}
|
1779
|
+
//
|
1780
|
+
try {
|
1781
|
+
this._ESRouter.setEnabled(this._ESRouterEnabled);
|
1782
|
+
} catch (e) {
|
1775
1783
|
}
|
1776
1784
|
return Promise.resolve();
|
1777
1785
|
}
|
@@ -1779,15 +1787,27 @@ class ESLaunchManager {
|
|
1779
1787
|
setESRouterEnabled(enabled) {
|
1780
1788
|
this._ESRouterEnabled = enabled && this.isESRouterSupported();
|
1781
1789
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1782
|
-
ESLog.d(
|
1790
|
+
ESLog.d('ESRouter', '#--------setESRouterEnabled------->>' + '\n' +
|
1783
1791
|
'enabled: ' + enabled + '\n' +
|
1784
1792
|
'_ESRouterEnabled: ' + this._ESRouterEnabled
|
1785
1793
|
);
|
1786
1794
|
}
|
1795
|
+
try {
|
1796
|
+
this._ESRouter.setEnabled(this._ESRouterEnabled);
|
1797
|
+
} catch (e) {
|
1798
|
+
}
|
1787
1799
|
}
|
1788
1800
|
|
1789
1801
|
isESRouterEnabled() {
|
1790
|
-
|
1802
|
+
let enabled = this._ESRouterEnabled && this.isESRouterSupported();
|
1803
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1804
|
+
ESLog.d('ESRouter', '#--------isESRouterEnabled------->>' + '\n' +
|
1805
|
+
'enabled: ' + enabled + '\n' +
|
1806
|
+
'_ESRouterEnabled: ' + this._ESRouterEnabled + '\n' +
|
1807
|
+
'isESRouterSupported: ' + this.isESRouterSupported()
|
1808
|
+
);
|
1809
|
+
}
|
1810
|
+
return enabled;
|
1791
1811
|
}
|
1792
1812
|
|
1793
1813
|
isESRouterSupported() {
|