Corrected a bug when there was quotes in page title.
This commit is contained in:
parent
73c2b7c4a0
commit
399fb099dc
@ -13,7 +13,7 @@ function shareURL(){
|
|||||||
gettingHeight.then(onGotHeight, onError);
|
gettingHeight.then(onGotHeight, onError);
|
||||||
|
|
||||||
var tab = tabs[0];
|
var tab = tabs[0];
|
||||||
|
|
||||||
// manages Mozilla Firefox reader mode
|
// manages Mozilla Firefox reader mode
|
||||||
var rawUrl = tab.url;
|
var rawUrl = tab.url;
|
||||||
var partToRemove = partToRemove = "about:reader?url=";
|
var partToRemove = partToRemove = "about:reader?url=";
|
||||||
@ -21,8 +21,8 @@ function shareURL(){
|
|||||||
rawUrl = rawUrl.substring(partToRemove.length);
|
rawUrl = rawUrl.substring(partToRemove.length);
|
||||||
rawUrl = decodeURIComponent(rawUrl);
|
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);
|
widthInt = Number(windowWidth);
|
||||||
heightInt = Number(windowHeight);
|
heightInt = Number(windowHeight);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user