Skip to content

Commit 78f6194

Browse files
committed
fix : migration failed if change
1 parent 3435e58 commit 78f6194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/outsystems-secure-sqlite-init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function acquireLsk(successCallback, errorCallback) {
9292
navigator.app.exitApp();
9393
}
9494
// When secure storage key migration fails
95-
} else if (error.message === "MIGRATION FAILED") {
95+
} else if (error.indexOf("MIGRATION FAILED") === 0) {
9696
Logger.logError("Migration Failed.", "SecureSQLiteBundle");
9797
window.alert("A feature on this app failed to be upgraded. Relaunch the app to try again.");
9898
navigator.app.exitApp();

0 commit comments

Comments
 (0)