We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c1db3 commit ae73592Copy full SHA for ae73592
src/app/main.ts
@@ -94,6 +94,14 @@ export async function configure(aurelia: Aurelia): Promise<void> {
94
.feature('resources/converters')
95
;
96
97
+ /**
98
+ * If we are on Cordova we have to wait until the device is ready.
99
+ * Removing this could cause breaking Cordova Plugins
100
+ */
101
+ await new Promise(resolve => appConfigService.platformIsMobile()
102
+ ? document.addEventListener('deviceready', () => resolve(), false)
103
+ : resolve());
104
+
105
await aurelia.start();
106
aurelia.setRoot('app.vm');
107
0 commit comments