@extscreen/es-core 10000.0.14 → 10000.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +29 -9
  2. 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
- this._ESRouter = router;
1769
- this._ESRouterEnabled = this.isESRouterSupported();
1770
- if (ESLog.isLoggable(ESLog.DEBUG)) {
1771
- ESLog.d(TAG, '#------init--------->>' + '\n' +
1772
- '_ESRouterEnabled: ' + this._ESRouterEnabled + '\n' +
1773
- '_ESRouter: ' + this._ESRouter
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(TAG, '#--------setESRouterEnabled------->>' + '\n' +
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
- return this._ESRouterEnabled && this.isESRouterSupported();
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extscreen/es-core",
3
- "version": "10000.0.14",
3
+ "version": "10000.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {