Created
March 22, 2018 14:11
-
-
Save foodforarabbit/387261c6baf28a2ef8ed3e55b6c0a3a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btoa(JSON.stringify({ | |
e: localStorage.getItem('entitiesObject'), | |
g: localStorage.getItem('gameState'), | |
t: localStorage.getItem('timeStamp'), | |
})) | |
var gameData = JSON.parse(atob(gameStr)) | |
localStorage.setItem("entitiesObject", gameData.e) | |
localStorage.setItem("gameState", gameData.g) | |
localStorage.setItem("timeStamp", gameData.t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment