Browse Source

init browser var with chrome if navigator dont know browser

wtoscer 2 years ago
parent
commit
fbec90d2c3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      js/background.js

+ 6 - 0
js/background.js

@@ -3,6 +3,12 @@
 var last_updated = 0;
 var feeds_last_updated = 0;
 var prefs_last_updated = 0;
+var test = browser;
+
+if (!test){
+	var browser;
+	browser = chrome;
+}
 
 function param_escape(arg) {
   if (typeof encodeURIComponent != 'undefined')