mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-12 23:47:13 +08:00
should fix the issue, maybe
This commit is contained in:
@@ -235,6 +235,8 @@ var Engine = {
|
|||||||
|
|
||||||
import64: function() {
|
import64: function() {
|
||||||
var string64 = prompt("put the save code here.","");
|
var string64 = prompt("put the save code here.","");
|
||||||
|
string64 = string64.replace(/\s/g, '');
|
||||||
|
string64 = string64.replace(/\W/g, '');
|
||||||
var decodedSave = Base64.decode(string64);
|
var decodedSave = Base64.decode(string64);
|
||||||
localStorage.gameState = decodedSave;
|
localStorage.gameState = decodedSave;
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|||||||
Reference in New Issue
Block a user