refactor: finish UX refactor and move events storage

This commit is contained in:
Andy Burke 2025-09-12 09:24:22 -07:00
parent 4347d20263
commit f760156651
10 changed files with 269 additions and 27 deletions

View file

@ -0,0 +1,18 @@
const NOTIFICATIONS = {
send: function (message, options = {}) {
if (!Notification || Notification.permission !== "granted") {
return;
}
const notification = new Notification(message, options);
return notification;
},
request_permissions: function () {
if (Notification && Notification.permission === "granted") {
return;
}
Notification.requestPermission();
},
};