Skip to content

Commit

Permalink
Remove notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
geraked committed Jan 19, 2024
1 parent 8e0d528 commit bff9348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 2 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Vidoo",
"description": "Change the speed of medias, adjust video filters, automatically skip Ads, etc.",
"version": "1.1.0",
"version": "1.1.1",
"homepage_url": "https://github.com/geraked/vidoo",
"icons": {
"128": "icons/vidoo.png"
Expand Down Expand Up @@ -49,7 +49,6 @@
"service_worker": "scripts/background.js"
},
"permissions": [
"storage",
"notifications"
"storage"
]
}
7 changes: 0 additions & 7 deletions scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,9 @@
}

async function toggleStatus() {
await chrome.notifications.clear("vidoo-toggle");
let obj = await chrome.storage.local.get({ vidooIsOn: true });
await chrome.storage.local.set({ vidooIsOn: !obj.vidooIsOn });
await updateIcon();
await chrome.notifications.create("vidoo-toggle", {
type: "basic",
title: "Vidoo is " + (!obj.vidooIsOn ? "ON" : "OFF"),
message: "Reloading the pages is required to apply the changes.",
iconUrl: !obj.vidooIsOn ? "/icons/vidoo.png" : "/icons/vidoo-gs.png"
});
}

})();

0 comments on commit bff9348

Please sign in to comment.