aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/onReplayGo.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-09-06 20:51:09 +0200
committerGitHub <noreply@github.com>2022-09-06 20:51:09 +0200
commit84184b35c8564a1c51cc67d9781d2463fd159527 (patch)
treeff2d11b06ce91cfdc2c33181fc4a6aa22c854eaf /webAO/dom/onReplayGo.ts
parent6f72f845455f517b47da96c7d3d474c6582000fb (diff)
parent34aba3b5b9572b707971d1fda9216ebcf91909ba (diff)
Merge pull request #167 from caleb-mabry/move-window-functions
Moving Window Functions pt. 1
Diffstat (limited to 'webAO/dom/onReplayGo.ts')
-rw-r--r--webAO/dom/onReplayGo.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/dom/onReplayGo.ts b/webAO/dom/onReplayGo.ts
new file mode 100644
index 0000000..82a6f2f
--- /dev/null
+++ b/webAO/dom/onReplayGo.ts
@@ -0,0 +1,10 @@
+import { client } from "../client";
+
+/**
+ * Triggered when the user click replay GOOOOO
+ * @param {KeyboardEvent} event
+ */
+export function onReplayGo(_event: Event) {
+ client.handleReplay();
+}
+window.onReplayGo = onReplayGo; \ No newline at end of file