Fixed local storage for HCJQ framework challenges
This commit is contained in:
@ -253,13 +253,14 @@ var allSeeds = '';
|
|||||||
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
|
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
|
||||||
|
|
||||||
editor.setValue(editorValue);
|
editor.setValue(editorValue);
|
||||||
|
editor.refresh();
|
||||||
|
|
||||||
var resetEditor = function resetEditor() {
|
var resetEditor = function resetEditor() {
|
||||||
editor.setValue(allSeeds);
|
editor.setValue(allSeeds);
|
||||||
updatePreview();
|
updatePreview();
|
||||||
codeStorage.updateStorage();
|
codeStorage.updateStorage();
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
var challengeSeed = challengeSeed || null;
|
var challengeSeed = challengeSeed || null;
|
||||||
var allSeeds = '';
|
var allSeeds = '';
|
||||||
(function() {
|
(function() {
|
||||||
@ -273,3 +274,4 @@ var allSeeds = '';
|
|||||||
}, 200);
|
}, 200);
|
||||||
})();
|
})();
|
||||||
})();
|
})();
|
||||||
|
*/
|
||||||
|
Reference in New Issue
Block a user