mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-28 23:32:30 +08:00
Fixing whitespace conformity on engine.js
This commit is contained in:
@@ -317,32 +317,6 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
export64: function() {
|
|
||||||
Engine.saveGame();
|
|
||||||
var string64 = Base64.encode(localStorage.gameState);
|
|
||||||
string64 = string64.replace(/\s/g, '');
|
|
||||||
string64 = string64.replace(/\./g, '');
|
|
||||||
string64 = string64.replace(/\n/g, '');
|
|
||||||
Engine.enableSelection();
|
|
||||||
Events.startEvent({
|
|
||||||
title: _('Export'),
|
|
||||||
scenes: {
|
|
||||||
start: {
|
|
||||||
text: [_('save this.')],
|
|
||||||
textarea: string64,
|
|
||||||
buttons: {
|
|
||||||
'done': {
|
|
||||||
text: _('got it'),
|
|
||||||
nextScene: 'end',
|
|
||||||
onChoose: Engine.disableSelection
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
generateExport64: function(){
|
generateExport64: function(){
|
||||||
var string64 = Base64.encode(localStorage.gameState);
|
var string64 = Base64.encode(localStorage.gameState);
|
||||||
string64 = string64.replace(/\s/g, '');
|
string64 = string64.replace(/\s/g, '');
|
||||||
|
|||||||
Reference in New Issue
Block a user