Fixed permissions.

This commit is contained in:
Ajay Ramachandran
2019-12-31 02:06:58 -05:00
parent 433db26078
commit 741ddcd8aa
2 changed files with 6 additions and 6 deletions

View File

@@ -44,12 +44,11 @@
"permissions": [
"storage",
"notifications",
"https://sponsor.ajay.app/*",
"https://*.invidio.us/*"
"https://sponsor.ajay.app/*"
],
"optional_permissions": [
"declarativeContent",
"https://*/*"
"https://*/*",
"declarativeContent"
],
"browser_action": {
"default_title": "__MSG_Name__",

View File

@@ -29,6 +29,7 @@ async function init() {
checkbox.addEventListener("click", () =>{
setOptionValue(option, reverse ? !checkbox.checked : checkbox.checked);
// See if anything extra must be run
switch (option) {
case "supportInvidious":
@@ -65,8 +66,8 @@ async function init() {
]
})]
};
chrome.declarativeContent.onPageChanged.addRules([rule], console.log);
chrome.declarativeContent.onPageChanged.addRules([rule]);
});
} else {
setOptionValue(option, false);