From 399fb099dcfc5082cc074d0342d61b74fa834394 Mon Sep 17 00:00:00 2001 From: Laurent Espitallier Date: Sat, 22 Jul 2017 16:28:03 +0200 Subject: [PATCH] Corrected a bug when there was quotes in page title. --- background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index b24ce94..0924f08 100644 --- a/background.js +++ b/background.js @@ -13,7 +13,7 @@ function shareURL(){ gettingHeight.then(onGotHeight, onError); var tab = tabs[0]; - + // manages Mozilla Firefox reader mode var rawUrl = tab.url; var partToRemove = partToRemove = "about:reader?url="; @@ -21,8 +21,8 @@ function shareURL(){ rawUrl = rawUrl.substring(partToRemove.length); rawUrl = decodeURIComponent(rawUrl); } - - var url = instance + "/bookmarks.php?action=add&address=" + encodeURIComponent(rawUrl) + "&title=" + tabs[0].title; + + var url = instance + "/bookmarks.php?action=add&address=" + encodeURIComponent(rawUrl) + "&title=" + encodeURIComponent(tabs[0].title); widthInt = Number(windowWidth); heightInt = Number(windowHeight);