started backup/loading mechanic

This commit is contained in:
Vermilingua
2013-10-13 11:53:11 +11:00
parent acc04d0780
commit 1be4d5edc5
3 changed files with 13 additions and 4 deletions
+2
View File
@@ -387,10 +387,12 @@ var Space = {
},
complete: function() {
Prestige.save();
backup = $SM.get('previous.stores');
$('#starsContainer').remove();
if(typeof Storage != 'undefined' && localStorage) {
localStorage.clear();
}
$SM.set('previous.stores',backup);
delete window.State;
Engine.options = {};
}