From cf228163092acb959e1adea4e69803547b6588ea Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 29 Dec 2019 20:53:40 +0100 Subject: [PATCH] Bugfix contentScript.js (restore var instead of let) --- contentScript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contentScript.js b/contentScript.js index 277d410..29aac26 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1,5 +1,5 @@ -let arr_localstorage_hold = ['sfchronicle.com', 'economist.com']; -let localstorage_hold = arr_localstorage_hold.some(function(url) { +var arr_localstorage_hold = ['sfchronicle.com', 'economist.com']; +var localstorage_hold = arr_localstorage_hold.some(function(url) { return window.location.href.indexOf(url) !== -1; });