fix: 🐛 add default for notificationPermission

Fixes #37
This commit is contained in:
Jack W. 2023-10-14 17:58:59 -04:00
parent 58aa0aac7e
commit 196b661b52
No known key found for this signature in database

View file

@ -16,7 +16,8 @@
let attachmentZone
let uploads = {}
let uploadInProgress = false
let notificationPermission = Notification.permission
let notificationPermission =
globalThis?.Notification?.permission ?? "denied"
let handle_file_upload = (ev) => {
if (ev.detail.type == "clone") {
uploads[Math.random().toString().slice(2)] = {