Fix in-game options menu
This commit is contained in:
parent
0d335b1786
commit
bc89b1f1ff
2 changed files with 9 additions and 13 deletions
|
@ -9,7 +9,7 @@ function localStorageImplementation() {
|
|||
return {
|
||||
readSaveFileUTF8(path) {
|
||||
console.log(`Failed to get externalStorage. Using localStorage to read save at ${path}`);
|
||||
return atob(localStorage.getItem(path));
|
||||
return localStorage.getItem(path);
|
||||
},
|
||||
|
||||
saveFileExists(path) {
|
||||
|
@ -19,7 +19,7 @@ function localStorageImplementation() {
|
|||
|
||||
writeSaveFileUTF8(path, data) {
|
||||
console.log(`Failed to get externalStorage. Writing ${path} save file to the localStorage`);
|
||||
localStorage.setItem(path, btoa(data));
|
||||
localStorage.setItem(path, data);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue