Added no-db warning

This commit is contained in:
ostertun
2020-10-05 23:52:09 +02:00
parent 7a3413b339
commit c211817f78
4 changed files with 38 additions and 5 deletions

View File

@@ -933,6 +933,8 @@ function initDatabase() {
request.onerror = function (event) {
log("Cannot open DB: " + event.target);
if (typeof onDatabaseLoaded == 'function') onDatabaseLoaded();
runPageScript();
};
request.onsuccess = function (event) {
@@ -1048,6 +1050,8 @@ function initDatabase() {
osUpdateTimes.put({ table: 'last_sync', time: 0 });
}
} else {
if (typeof onDatabaseLoaded == 'function') onDatabaseLoaded();
runPageScript();
}
}