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.
This commit is contained in:
Ben Harris
2022-10-13 10:29:29 +01:00
parent 47905e9547
commit a46f0c2ba9

View File

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