aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-10-13 10:29:29 +0100
committerBen Harris <bjh21@bjh21.me.uk>2022-10-21 00:30:00 +0100
commita46f0c2ba9537d91944b3734f18a3fbfb822c9f8 (patch)
tree7e18e6705383b0f7f5d3ece9d764eaf9731b2b43
parent47905e954726ff95ce5e4493def91b9107668c94 (diff)
downloadpuzzles-a46f0c2ba9537d91944b3734f18a3fbfb822c9f8.zip
puzzles-a46f0c2ba9537d91944b3734f18a3fbfb822c9f8.tar.gz
puzzles-a46f0c2ba9537d91944b3734f18a3fbfb822c9f8.tar.bz2
puzzles-a46f0c2ba9537d91944b3734f18a3fbfb822c9f8.tar.xz
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.
-rw-r--r--emccpre.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/emccpre.js b/emccpre.js
index aa2803e..7bdc2d6 100644
--- a/emccpre.js
+++ b/emccpre.js
@@ -391,7 +391,7 @@ function initPuzzle() {
var string = reader.result;
load_game(string, string.length);
});
- reader.readAsBinaryString(file);
+ reader.readAsText(file);
}
dialog_cleanup();
}, function(event) {