aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom')
-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