Add slash at the beginning, right after instance URL

In case user didn't specified it at the end of it's instance URL
This commit is contained in:
FrenchHope 2017-07-14 08:20:26 +02:00 committed by GitHub
parent 5a19eb5468
commit ac4c691e0e

View File

@ -14,7 +14,7 @@ function shareURL(){
var tab = tabs[0]; 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); widthInt = Number(windowWidth);
heightInt = Number(windowHeight); heightInt = Number(windowHeight);