Bug correction
This commit is contained in:
parent
f6c889a09d
commit
7b51fb3064
@ -70,12 +70,12 @@ browser.contextMenus.create({
|
||||
});
|
||||
|
||||
browser.browserAction.onClicked.addListener((tab) => {
|
||||
if(tab.url.includes("about:reader?url=") == true){
|
||||
if((tab.url.includes("about:reader?url=") == true) || (tab.url.includes("https://addons.mozilla.org/") == true)){
|
||||
shareURL("",tab);
|
||||
}
|
||||
else
|
||||
{
|
||||
if((tab.url.includes("about:reader?url=") == true) || (tab.url.includes("https://addons.mozilla.org/") == true)){
|
||||
browser.tabs.sendMessage(tab.id, {method: "getSelection"}).then(response => {
|
||||
shareURL(response.response,tab);
|
||||
}).catch(onError);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user