@extscreen/es-core 10000.0.6 → 10000.0.7
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 +14 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1762,15 +1762,12 @@ class ESLaunchManager {
|
|
1762
1762
|
_ESRouter = null;
|
1763
1763
|
_ESRouterEnabled = true;
|
1764
1764
|
|
1765
|
-
init() {
|
1765
|
+
init(router) {
|
1766
|
+
this._ESRouter = router;
|
1766
1767
|
this._ESRouterEnabled = this.isESRouterSupported();
|
1767
1768
|
return Promise.resolve();
|
1768
1769
|
}
|
1769
1770
|
|
1770
|
-
setESRouter(ESRouter) {
|
1771
|
-
this._ESRouter = ESRouter;
|
1772
|
-
}
|
1773
|
-
|
1774
1771
|
setESRouterEnabled(enabled) {
|
1775
1772
|
this._ESRouterEnabled = enabled && this.isESRouterSupported();
|
1776
1773
|
}
|
@@ -1830,13 +1827,18 @@ var ESLaunchManager$1 = new ESLaunchManager();
|
|
1830
1827
|
|
1831
1828
|
class ES {
|
1832
1829
|
|
1833
|
-
init() {
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1830
|
+
init(configuration) {
|
1831
|
+
if (configuration) {
|
1832
|
+
return Promise.resolve()
|
1833
|
+
.then(() => ESDeviceManager$1.init())
|
1834
|
+
.then(() => ESDevelopManager$1.init())
|
1835
|
+
.then(() => ESDisplayManager$1.init())
|
1836
|
+
.then(() => ESManager$1.init())
|
1837
|
+
//
|
1838
|
+
.then(() => ESLaunchManager$1.init(configuration.router))
|
1839
|
+
} else {
|
1840
|
+
return Promise.reject('configuration can not be null!')
|
1841
|
+
}
|
1840
1842
|
}
|
1841
1843
|
}
|
1842
1844
|
|