allow disabling notifications.
This commit is contained in:
@@ -377,6 +377,7 @@ function Options() {
|
|||||||
|
|
||||||
async function handleNotifications() {
|
async function handleNotifications() {
|
||||||
if (showNotifications) {
|
if (showNotifications) {
|
||||||
|
await browser.storage.local.set({notifications: false})
|
||||||
setNotifications(false)
|
setNotifications(false)
|
||||||
} else {
|
} else {
|
||||||
let granted = await browser.permissions.request({
|
let granted = await browser.permissions.request({
|
||||||
|
|||||||
Reference in New Issue
Block a user