From 3d99a6fd7f01119be461690e77a4cf10fd4122ba Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Tue, 6 Nov 2012 22:40:10 +0100 Subject: [PATCH] do more correct indexedDB access --- js/ui.js | 4 ++-- manifest.appcache | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.43.0