1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added link to standalone options page.

As mentioned in #221.
This commit is contained in:
kkapsner 2018-08-18 22:41:34 +02:00
parent 635912c8b9
commit 34019f2515
5 changed files with 30 additions and 0 deletions

View file

@ -71,6 +71,16 @@
document.body.classList.add("standalone");
}
else {
const linkDiv = document.createElement("div");
linkDiv.className = "optionsLink";
const link = document.createElement("a");
link.href = window.location.href;
link.target = "_blank";
link.textContent = browser.i18n.getMessage("openInTab");
linkDiv.appendChild(link);
head.appendChild(linkDiv);
}
});
var table = document.createElement("table");