From 2462d26b3e2cdcd55a2e84f2ceac86cf223253ca Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Thu, 6 Jun 2024 17:49:38 -0300 Subject: [PATCH] fix compiling --- src/main/typescript/js/page.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main/typescript/js/page.ts b/src/main/typescript/js/page.ts index 758fc03..b6dd023 100644 --- a/src/main/typescript/js/page.ts +++ b/src/main/typescript/js/page.ts @@ -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") {