1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00

Close browserAction when a new page is opened

Fixes #576
This commit is contained in:
kkapsner 2021-08-17 19:01:44 +02:00
parent 709093fa4d
commit 8e4a881288

View File

@ -71,6 +71,7 @@
else { else {
window.open(browser.extension.getURL("options/options.html"), "_blank"); window.open(browser.extension.getURL("options/options.html"), "_blank");
} }
window.close();
} }
}, },
{ {
@ -78,6 +79,7 @@
icon: browser.extension.getURL("icons/browserAction-faq.svg"), icon: browser.extension.getURL("icons/browserAction-faq.svg"),
action: function(){ action: function(){
window.open("https://canvasblocker.kkapsner.de/faq/", "_blank"); window.open("https://canvasblocker.kkapsner.de/faq/", "_blank");
window.close();
} }
}, },
{ {
@ -86,6 +88,7 @@
icon: browser.extension.getURL("icons/browserAction-test.svg"), icon: browser.extension.getURL("icons/browserAction-test.svg"),
action: function(){ action: function(){
window.open("https://canvasblocker.kkapsner.de/test", "_blank"); window.open("https://canvasblocker.kkapsner.de/test", "_blank");
window.close();
} }
}, },
{ {
@ -93,6 +96,7 @@
icon: browser.extension.getURL("icons/browserAction-review.svg"), icon: browser.extension.getURL("icons/browserAction-review.svg"),
action: function(){ action: function(){
window.open("https://addons.mozilla.org/firefox/addon/canvasblocker/reviews/", "_blank"); window.open("https://addons.mozilla.org/firefox/addon/canvasblocker/reviews/", "_blank");
window.close();
} }
}, },
{ {
@ -100,6 +104,7 @@
icon: browser.extension.getURL("icons/browserAction-reportIssue.svg"), icon: browser.extension.getURL("icons/browserAction-reportIssue.svg"),
action: function(){ action: function(){
window.open("https://github.com/kkapsner/CanvasBlocker/issues", "_blank"); window.open("https://github.com/kkapsner/CanvasBlocker/issues", "_blank");
window.close();
} }
}, },
]; ];