diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-28 23:12:48 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-28 23:12:48 +0200 |
| commit | 8bbd4a50ce90173949f56e9ed85856267471a992 (patch) | |
| tree | c8ac219a3774f19d536135e14f78a491e8b353f4 /webAO/client.ts | |
| parent | 1285a83a3bac725423c24eb248ef54747ad005f5 (diff) | |
popup and callback works best
Diffstat (limited to 'webAO/client.ts')
| -rw-r--r-- | webAO/client.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/webAO/client.ts b/webAO/client.ts index fc54026..9edb412 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -75,6 +75,7 @@ let hdid: string; declare global { interface Window { + handleCredentialResponse: (response: any) => void; toggleShout: (shout: number) => void; toggleMenu: (menu: number) => void; updateBackgroundPreview: () => void; @@ -495,7 +496,6 @@ class Client extends EventEmitter { joinServer() { this.sendServer('ID#webAO#webAO#%'); this.sendServer(`HI#${hdid}#%`); - this.sendServer(`2T#${getCookie('g_csrf_token')}#%`); if (mode !== 'replay') { this.checkUpdater = setInterval(() => this.sendCheck(), 5000); } } @@ -3369,4 +3369,10 @@ export function toggleShout(shout: number) { } } window.toggleShout = toggleShout; -export default Client + +function handleCredentialResponse(response: any) { + client.sendServer(`2T#${response.credential}#%`); +} +window.handleCredentialResponse = handleCredentialResponse; + +export default Client
\ No newline at end of file |
