mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Merge branch 'master' into WhitelistAPISpecific
This commit is contained in:
commit
ed5a1b03cd
48 changed files with 653 additions and 67 deletions
|
@ -14,21 +14,12 @@
|
|||
const Notification = require("./Notification");
|
||||
const {createActionButtons, modalPrompt, modalChoice} = require("./gui");
|
||||
const lists = require("../lib/lists");
|
||||
require("../lib/theme").init("pageAction");
|
||||
|
||||
Promise.all([
|
||||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue