1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Merge pull request #30 from thepaperpilot/fix-loading

Fix loading not escaping and decoding
This commit is contained in:
Harley White 2021-04-29 23:20:50 -04:00 committed by GitHub
commit 6640c04eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,7 @@ function load() {
if (get === null || get === undefined)
player = getStartPlayer();
else
player = Object.assign(getStartPlayer(), JSON.parse(atob(get)));
player = Object.assign(getStartPlayer(), JSON.parse(decodeURIComponent(escape(atob(get)))));
fixSave();
if (player.offlineProd) {