From ac4c691e0e308e832a6e11cbb070b6694dbec927 Mon Sep 17 00:00:00 2001 From: FrenchHope Date: Fri, 14 Jul 2017 08:20:26 +0200 Subject: [PATCH] Add slash at the beginning, right after instance URL In case user didn't specified it at the end of it's instance URL --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 8fb8bce..19be6ad 100644 --- a/background.js +++ b/background.js @@ -14,7 +14,7 @@ function shareURL(){ var tab = tabs[0]; - var url = instance + "bookmarks.php?action=add&address=" + encodeURIComponent(tab.url) + "&title=" + tabs[0].title; + var url = instance + "/bookmarks.php?action=add&address=" + encodeURIComponent(tab.url) + "&title=" + tabs[0].title; widthInt = Number(windowWidth); heightInt = Number(windowHeight);