Skip to content

Commit 557ad2b

Browse files
committed
fix - trial: prevent the checkbox from flashing back off on mobile
1 parent 96ef02e commit 557ad2b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

js/pushNotificationsHandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ document.addEventListener("DOMContentLoaded", () => {
3232

3333
// Save preference to localStorage
3434
localStorage.setItem("notificationsEnabled", isEnabled ? "true" : "false");
35+
document.querySelector("form-switch").innerText += isEnabled ? "Notifications Enabled" : "Notifications Disabled";
3536

3637
// When user turns notifications ON, request permission
3738
if (isEnabled) {

0 commit comments

Comments
 (0)