allow disabling notifications.

This commit is contained in:
fiatjaf
2023-06-11 11:10:10 -03:00
parent 7117187e2c
commit c102f8e061

View File

@@ -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({