From 05978691ba18954f626bb7c6a7e50e8e017de7d0 Mon Sep 17 00:00:00 2001 From: Laurent Espitallier Date: Sat, 22 Jul 2017 19:52:06 +0200 Subject: [PATCH] Optimization. --- background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index ec5b2f2..864f602 100644 --- a/background.js +++ b/background.js @@ -12,11 +12,11 @@ function shareURL(){ // manages Mozilla Firefox reader mode var rawUrl = tab.url; - var partToRemove = partToRemove = "about:reader?url="; + var partToRemove = "about:reader?url="; if(rawUrl.includes(partToRemove)) { rawUrl = rawUrl.substring(partToRemove.length); rawUrl = decodeURIComponent(rawUrl); - } + } var url = instance + "/bookmarks.php?action=add&address=" + encodeURIComponent(rawUrl) + "&title=" + encodeURIComponent(tabs[0].title); widthInt = Number(windowWidth);