Fix checking for blank page

This commit is contained in:
Ivan Grachyov 2021-12-11 23:15:02 +03:00
parent f998a2c203
commit 4e9e846e16

View File

@ -1,4 +1,4 @@
if (window.location.href == "https://tokenary.io/blank/") { // TODO: check for prefix actually
if (window.location.href.startsWith("https://tokenary.io/blank")) {
browser.runtime.sendMessage({ subject: "closeTab" });
}