From 3445fe86cd359080e6c21b18cb43f08bb5e5881a Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sat, 22 Oct 2022 17:55:00 +0200 Subject: add to window class --- webAO/dom/twofactor.ts | 1 + webAO/dom/window.ts | 1 + 2 files changed, 2 insertions(+) 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 -- cgit