Gerald 12 år sedan
förälder
incheckning
bdcd6745b4
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      background.js

+ 2 - 2
background.js

@@ -439,7 +439,7 @@ function checkUpdateO(o) {
       delete r.hideUpdate;
       delete r.hideUpdate;
       updateItem(r);finish();
       updateItem(r);finish();
     });
     });
-  }
+  } else finish();
 }
 }
 function checkUpdate(id,src,callback) {
 function checkUpdate(id,src,callback) {
 	var o=db.transaction('scripts').objectStore('scripts');
 	var o=db.transaction('scripts').objectStore('scripts');
@@ -610,7 +610,7 @@ chrome.runtime.onMessage.addListener(function(req,src,callback) {
 	return true;
 	return true;
 });
 });
 initDb(function(){
 initDb(function(){
-	getOption('maxPosition',function(p){
+	getOption('maxPosition',null,function(p){
 		if(p) pos=p;
 		if(p) pos=p;
 	});
 	});
 	getOption('isApplied',null,function(o){
 	getOption('isApplied',null,function(o){