about:reader url
This commit is contained in:
parent
c2535beac9
commit
ca5a5f32a6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user