refactor: wait loading.

This commit is contained in:
Ansolve 2023-12-23 02:36:55 +08:00
parent e3c0217869
commit de043e3945
No known key found for this signature in database
GPG Key ID: 2F2873AC9538CC2D
1 changed files with 1 additions and 1 deletions

View File

@ -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) {