shithub: puzzles

Download patch

ref: a46f0c2ba9537d91944b3734f18a3fbfb822c9f8
parent: 47905e954726ff95ce5e4493def91b9107668c94
author: Ben Harris <[email protected]>
date: Thu Oct 13 06:29:29 EDT 2022

js: Read save files as text rather than binary strings

If I'm going to insist they're text I should be consistent about it.

--- a/emccpre.js
+++ b/emccpre.js
@@ -391,7 +391,7 @@
                         var string = reader.result;
                         load_game(string, string.length);
                     });
-                    reader.readAsBinaryString(file);
+                    reader.readAsText(file);
                 }
                 dialog_cleanup();
             }, function(event) {