From: Robert Kaiser Date: Tue, 6 Nov 2012 21:40:10 +0000 (+0100) Subject: do more correct indexedDB access X-Git-Tag: legacy-preGL~49 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=3d99a6fd7f01119be461690e77a4cf10fd4122ba;p=lantea.git do more correct indexedDB access --- diff --git a/js/ui.js b/js/ui.js index 9d55c6b..7ed15e2 100644 --- a/js/ui.js +++ b/js/ui.js @@ -3,7 +3,7 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ // Get the best-available indexedDB object. -var iDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB; +window.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB; var mainDB; var gUIHideCountdown = 0; @@ -66,7 +66,7 @@ window.onresize = function() { function initDB() { // Open DB. - var request = iDB.open("MainDB", 1); + var request = window.indexedDB.open("MainDB", 1); request.onerror = function(event) { // Errors can be handled here. Error codes explain in: // https://developer.mozilla.org/en/IndexedDB/IDBDatabaseException#Constants diff --git a/manifest.appcache b/manifest.appcache index b6b0663..99a99f0 100644 --- a/manifest.appcache +++ b/manifest.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# 2012-11-04 +# 2012-11-06 index.html manifest.webapp js/map.js