refactor: wait loading.
This commit is contained in:
parent
e3c0217869
commit
de043e3945
|
@ -751,7 +751,7 @@ function onWindowReady() {
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
document.addEventListener('deviceready', async () => {
|
document.addEventListener('deviceready', async () => {
|
||||||
const { cordovaReady } = await import('./cordova.js');
|
const { cordovaReady } = await import('./cordova.js');
|
||||||
cordovaReady();
|
await cordovaReady();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (_status.packLoaded) {
|
if (_status.packLoaded) {
|
||||||
|
|
Loading…
Reference in New Issue