From a088e50b3beb66436a3ec383967deef24876fc6e Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Wed, 22 Dec 2021 22:31:37 -0700 Subject: [PATCH] Fix a typo; add a suggestion about hard refreshing a broken game --- index.html | 1 + js/main.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d4ddfcb..8990fb8 100644 --- a/index.html +++ b/index.html @@ -151,6 +151,7 @@

oops!

Sorry, the game was unable to load at all.

If you have JavaScript partly or wholly blocked, I salute you! ...but this is an interactive game and cannot work without it.

+

If not, it's possible that the game updated, but you have a mix of old and new code. Try a hard refresh (Ctrl-Shift-R).

I did manage to capture this error, which you might be able to report somewhere:


     
diff --git a/js/main.js b/js/main.js
index f5a681e..2093e20 100644
--- a/js/main.js
+++ b/js/main.js
@@ -974,7 +974,7 @@ class Player extends PrimaryView {
         // Auto-delete captions once their animations end
         this.captions_el.addEventListener('animationend', ev => {
             if (ev.target !== this.captions_el) {
-                this.target.remove();
+                ev.target.remove();
             }
         });