mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
fix compiling
This commit is contained in:
parent
48fbe5b3e7
commit
2462d26b3e
@ -362,7 +362,7 @@ function authNotification(msg: string, yes: () => void, no: () => void) {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let tag = uuid.v4();
|
let tag = uuid.v4();
|
||||||
navigator.serviceWorker.ready.then(r => {
|
navigator.serviceWorker.ready.then(r => {
|
||||||
r.showNotification("Click to allow auth impersonation", {
|
val options = {
|
||||||
body: msg,
|
body: msg,
|
||||||
tag: tag,
|
tag: tag,
|
||||||
vibrate: [200, 10, 100, 200, 100, 10, 100, 10, 200],
|
vibrate: [200, 10, 100, 200, 100, 10, 100, 10, 200],
|
||||||
@ -370,7 +370,8 @@ function authNotification(msg: string, yes: () => void, no: () => void) {
|
|||||||
{action: "reject", title: "Reject"},
|
{action: "reject", title: "Reject"},
|
||||||
{action: "confirm", title: "Confirm"}
|
{action: "confirm", title: "Confirm"}
|
||||||
]
|
]
|
||||||
}).then(() => {
|
}
|
||||||
|
r.showNotification("Click to allow auth impersonation", options).then(() => {
|
||||||
});
|
});
|
||||||
notificationCallbacks.set(tag, action => {
|
notificationCallbacks.set(tag, action => {
|
||||||
if (action === "reject") {
|
if (action === "reject") {
|
||||||
|
Loading…
Reference in New Issue
Block a user