From 838e24bbed8d7fab4f9f65139d58aaa1b046560e Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 16 Apr 2026 07:43:17 +0000 Subject: [PATCH] Stop losing webGL context on review complete It makes things *much* faster --- ts/store/session.ts | 2 +- ts/view/review/Pool.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/store/session.ts b/ts/store/session.ts index ec87339d..a38b5988 100644 --- a/ts/store/session.ts +++ b/ts/store/session.ts @@ -23,7 +23,7 @@ export const useSessionStore = defineStore("session", () => { // Subscription SSEManager.subscribe((msg: SSEMessage) => { - if (msg.type !== "sync:session") { + if (msg.type == "sync:session") { fetchSession(); } }); diff --git a/ts/view/review/Pool.vue b/ts/view/review/Pool.vue index cb2a1996..2723de9a 100644 --- a/ts/view/review/Pool.vue +++ b/ts/view/review/Pool.vue @@ -280,11 +280,11 @@ async function submitReview(action: "committed" | "discarded"): Promise { }; const response = await fetch("/api/review/pool", { - method: "POST", + body: JSON.stringify(payload), headers: { "Content-Type": "application/json", }, - body: JSON.stringify(payload), + method: "POST", }); if (!response.ok) {