From 790ff84ec996c5bf75fddbb3d2a6630b9b514347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szopi=C5=84ski?= Date: Thu, 16 Jul 2020 14:45:13 +0200 Subject: [PATCH] Make parser const --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 651983f..1a317f7 100644 --- a/background.js +++ b/background.js @@ -14,7 +14,7 @@ const excludedPaths = [ chrome.webRequest.onBeforeRequest.addListener( function(details) { - let urlParser = document.createElement("a"); + const urlParser = document.createElement("a"); urlParser.href = details.url; if (urlParser.hostname == "old.reddit.com") return;