Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoclpf committed May 25, 2023
1 parent 5a61533 commit 6627ad7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<hook src="hooks/minifyFiles.js" type="after_prepare"/>
<hook src="node_modules/cordova-import-npm/scripts/importNpmPackages.js" type="before_prepare"/>
<platform name="android">
<preference name="android-minSdkVersion" value="30"/>
<preference name="android-minSdkVersion" value="29"/>
<preference name="android-targetSdkVersion" value="33"/>
<preference name="android-compileSdkVersion" value="33"/>
<preference name="AndroidPersistentFileLocation" value="Compatibility"/>
Expand Down
14 changes: 14 additions & 0 deletions www/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,20 @@ app.main = (function (thisModule) {
if (!DEBUG) {
requestUserAppEvaluation()
}

// define Promise.allSettled when not available
Promise.allSettled = Promise.allSettled || ((promises) => Promise.all(
promises.map(p => p
.then(value => ({
status: 'fulfilled',
value
}))
.catch(reason => ({
status: 'rejected',
reason
}))
)
))
}

// ##############################################################################################################
Expand Down

0 comments on commit 6627ad7

Please sign in to comment.