persist prefs
[lantea.git] / js / ui.js
index 9f2f1fe0d0d0f900cdc49540fd29482d2085452b..9eff69350098f5a863c81f7abc757f10e9bfef58 100644 (file)
--- a/js/ui.js
+++ b/js/ui.js
@@ -51,7 +51,6 @@ window.onload = function() {
   initDB();
   initMap();
   resizeAndDraw();
-  startTracking();
 }
 
 window.onresize = function() {
@@ -168,7 +167,7 @@ var gPrefs = {
     var transaction = mainDB.transaction([this.objStore],
                                          IDBTransaction.READ_WRITE);
     var objStore = transaction.objectStore(this.objStore);
-    var request = objStore.add(aValue, aKey);
+    var request = objStore.put(aValue, aKey);
     request.onsuccess = function(event) {
       success = true;
       if (aCallback)