From 6d046e52409eb87007e24bbc3cfe61796c91237f Mon Sep 17 00:00:00 2001 From: Zekiah-A Date: Sun, 8 Sep 2024 18:45:06 +0100 Subject: [PATCH] Fix muted and place chat default values w/ rolling update hack --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 25c7596c6..c0eb1dfb5 100644 --- a/index.html +++ b/index.html @@ -853,7 +853,7 @@ // Requests all the pixel placers for a given region from the server to be loaded into function _requestPixelPlacers(x, y, width, height) { if (ws.readyState !== ws.OPEN) { - throw new Error("Could not request pixel placers, websocket state is not open") + return } const placerInfoBuf = new DataView(new Uint8Array(7).buffer) placerInfoBuf.setUint8(0, 9) @@ -1475,7 +1475,7 @@

What was that countdown thing though?

- + Coming soon! @@ -2287,11 +2287,11 @@

Quest complete! 🥳

this.play().catch(e => e) } - const localStorageBoolValues = [ undefined, "true", "false" ] - if (!localStorageBoolValues.includes(localStorage.muted)) { + // Necessary because of rolling updates + if (!localStorage.muted !== "true") { // Prefer false localStorage.muted = "false" } - if (!localStorageBoolValues.includes(localStorage.placeChat)) { + if (!localStorage.placeChat !== "false") { // Prefer true localStorage.placeChat = "true" } let muted = localStorage.muted === "true"