fix compiling

This commit is contained in:
creeper123123321 2024-06-06 17:49:38 -03:00
parent 48fbe5b3e7
commit 2462d26b3e

View File

@ -362,15 +362,16 @@ function authNotification(msg: string, yes: () => void, no: () => void) {
// @ts-ignore
let tag = uuid.v4();
navigator.serviceWorker.ready.then(r => {
r.showNotification("Click to allow auth impersonation", {
body: msg,
tag: tag,
vibrate: [200, 10, 100, 200, 100, 10, 100, 10, 200],
actions: [
{action: "reject", title: "Reject"},
{action: "confirm", title: "Confirm"}
]
}).then(() => {
val options = {
body: msg,
tag: tag,
vibrate: [200, 10, 100, 200, 100, 10, 100, 10, 200],
actions: [
{action: "reject", title: "Reject"},
{action: "confirm", title: "Confirm"}
]
}
r.showNotification("Click to allow auth impersonation", options).then(() => {
});
notificationCallbacks.set(tag, action => {
if (action === "reject") {