@extscreen/es-core 1.1.6 → 1.1.8

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1832,9 +1832,17 @@ class ESLaunchManager {
1832
1832
 
1833
1833
  finishESPage() {
1834
1834
  if (this.isESRouterEnabled() && this._ESRouter
1835
- && this._ESRouter.back()) ;
1835
+ && this._ESRouter.back()) {
1836
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1837
+ ESLog.d('ESRouter', '#----finishESPage---ESRouter.back----->>>>>');
1838
+ }
1839
+ //
1840
+ }
1836
1841
  //
1837
1842
  else {
1843
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1844
+ ESLog.d('ESRouter', '#----finishESPage---ESModule.finish----->>>>>');
1845
+ }
1838
1846
  ESModule$1.finish();
1839
1847
  }
1840
1848
  }
@@ -1934,21 +1942,20 @@ const TAG = "ESRouter";
1934
1942
  var ESRouter = {
1935
1943
 
1936
1944
  mounted() {
1937
- if (ESLaunchManager$1.isESRouterEnabled()) {
1938
- Vue.Native.callNative('DeviceEventModule', 'setListenBackPress', true);
1939
- ESApp$1.$on('hardwareBackPress', this.onESRouterBackPressed);
1940
- ESApp$1.$on('DispatchKeyEvent', this.onESRouterDispatchKeyEvent);
1941
- }
1945
+ Vue.Native.callNative('DeviceEventModule', 'setListenBackPress', true);
1946
+ ESApp$1.$on('hardwareBackPress', this.onESRouterBackPressed);
1947
+ ESApp$1.$on('DispatchKeyEvent', this.onESRouterDispatchKeyEvent);
1942
1948
  },
1943
1949
  beforeDestroy() {
1944
- if (ESLaunchManager$1.isESRouterEnabled()) {
1945
- ESApp$1.$off('hardwareBackPress', this.onESRouterBackPressed);
1946
- ESApp$1.$off('DispatchKeyEvent', this.onESRouterDispatchKeyEvent);
1947
- }
1950
+ ESApp$1.$off('hardwareBackPress', this.onESRouterBackPressed);
1951
+ ESApp$1.$off('DispatchKeyEvent', this.onESRouterDispatchKeyEvent);
1948
1952
  },
1949
1953
 
1950
1954
  methods: {
1951
1955
  onESRouterBackPressed() {
1956
+ if (!ESLaunchManager$1.isESRouterEnabled()) {
1957
+ return
1958
+ }
1952
1959
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1953
1960
  ESLog.d(TAG, '#-------onESRouterBackPressed----->>>>>');
1954
1961
  }
@@ -1959,6 +1966,9 @@ var ESRouter = {
1959
1966
  }
1960
1967
  },
1961
1968
  onESRouterDispatchKeyEvent(keyEvent) {
1969
+ if (!ESLaunchManager$1.isESRouterEnabled()) {
1970
+ return
1971
+ }
1962
1972
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1963
1973
  ESLog.d(TAG, '#-------onESRouterDispatchKeyEvent----->>>>>' + keyEvent);
1964
1974
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extscreen/es-core",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {