From ad2524a89f2a0e29088873b18eb458760fa796b1 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 4 Aug 2026 17:58:22 -0400 Subject: Fix --- 2026/framing/src/bindings.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '2026/framing/src/bindings.js') diff --git a/2026/framing/src/bindings.js b/2026/framing/src/bindings.js index e9c2655..222b74d 100644 --- a/2026/framing/src/bindings.js +++ b/2026/framing/src/bindings.js @@ -5,3 +5,14 @@ export function js_update_lifetotal(lives) { export function js_ready_to_reset() { window.parent.postMessage({op: "readytoreset"}); } + +export function js_upload_highscore(score) { + if (typeof score === "number") { + let form = FormData(); + form.append("score", score); + fetch("https://api.colonq.computer/api/jam/2026/score", { + method: "POST", + body: form, + }); + } +} -- cgit v1.3.1