about:reader url

This commit is contained in:
Laurent Espitallier 2017-08-09 20:28:59 +02:00
parent c2535beac9
commit ca5a5f32a6

View File

@ -55,7 +55,7 @@ browser.contextMenus.create({
onclick: function(){ onclick: function(){
browser.tabs.query({ currentWindow: true, active: true }, function(tabs) { browser.tabs.query({ currentWindow: true, active: true }, function(tabs) {
tab = tabs[0]; tab = tabs[0];
if(tab.url.includes("about:") == true){ if(tab.url.includes("about:reader?url=") == true){
shareURL("",tab); shareURL("",tab);
} }
else else
@ -70,7 +70,7 @@ browser.contextMenus.create({
}); });
browser.browserAction.onClicked.addListener((tab) => { browser.browserAction.onClicked.addListener((tab) => {
if(tab.url.includes("about:") == true){ if(tab.url.includes("about:reader?url=") == true){
shareURL("",tab); shareURL("",tab);
} }
else else