aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-10-22 17:55:00 +0200
committerstonedDiscord <Tukz@gmx.de>2022-10-22 17:55:00 +0200
commit3445fe86cd359080e6c21b18cb43f08bb5e5881a (patch)
tree98576238f58c11bc6a08028cdcd03d597e97afa9 /webAO
parent5aca325ce9d2d8e2f4472f93a1e74cdfacbe7edf (diff)
add to window class
Diffstat (limited to 'webAO')
-rw-r--r--webAO/dom/twofactor.ts1
-rw-r--r--webAO/dom/window.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/webAO/dom/twofactor.ts b/webAO/dom/twofactor.ts
index 145a00e..cb7bccd 100644
--- a/webAO/dom/twofactor.ts
+++ b/webAO/dom/twofactor.ts
@@ -1,6 +1,7 @@
import { client } from "../client";
function handleCredentialResponse(response: any) {
+ console.log(response);
client.sender.sendServer(`2T#${response.credential}#%`);
}
window.handleCredentialResponse = handleCredentialResponse; \ No newline at end of file
diff --git a/webAO/dom/window.ts b/webAO/dom/window.ts
index 2535768..956526c 100644
--- a/webAO/dom/window.ts
+++ b/webAO/dom/window.ts
@@ -51,6 +51,7 @@ declare global {
onEnter: (event: any) => void;
onReplayGo: (_event: any) => void;
onOOCEnter: (_event: any) => void;
+ handleCredentialResponse: (_event: any) => void;
}
}
export { } \ No newline at end of file