about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--background.js4
-rw-r--r--manifest.json2
2 files changed, 2 insertions, 4 deletions
diff --git a/background.js b/background.js
index 96c6a146..f249b80f 100644
--- a/background.js
+++ b/background.js
@@ -92,8 +92,7 @@ browser.storage.sync.get(
     alwaysProxy = result.alwaysProxy;
     onlyEmbeddedVideo = result.onlyEmbeddedVideo;
     videoQuality = result.videoQuality;
-    whitelist = result.whitelist.map(e => new RegExp(e));
-    console.log(whitelist);
+    whitelist = result.whitelist ? result.whitelist.map(e => new RegExp(e)) : [];
   }
 );
 
@@ -133,7 +132,6 @@ browser.storage.onChanged.addListener(changes => {
   }
   if ('whitelist' in changes) {
     whitelist = changes.whitelist.newValue.map(e => new RegExp(e));
-    console.log(whitelist);
   }
 });
 
diff --git a/manifest.json b/manifest.json
index e69a8ba9..77dbb11d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
 {
   "name": "Privacy Redirect",
   "description": "Redirects Twitter, YouTube, Instagram & Google Maps requests to privacy friendly alternatives.",
-  "version": "1.1.22",
+  "version": "1.1.23",
   "manifest_version": 2,
   "background": {
     "scripts": [