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

Added theme to page action popup

Fixes #232.
This commit is contained in:
kkapsner 2018-08-28 08:29:01 +02:00
parent 40677bd2c6
commit 84bd36197b
7 changed files with 61 additions and 7 deletions

View file

@ -18,6 +18,16 @@
browser.tabs.query({active: true, currentWindow: true}),
settings.loaded
]).then(function(values){
// load theme
var themeLink = document.createElement("link");
themeLink.href = `pageAction-${settings.theme}.css`;
themeLink.rel = "stylesheet";
themeLink.type = "text/css";
document.head.appendChild(themeLink);
settings.on("theme", function(){
themeLink.href = `pageAction-${settings.theme}.css`;
});
const tabs = values[0];
notice("create global action buttons");