This should fix web storage script tag issues

pull/2288/head
benmcmahon100 2015-08-20 02:18:11 +01:00
parent 9541377a08
commit 79a0dc8259
1 changed files with 3 additions and 3 deletions

View File

@ -252,7 +252,7 @@ var allSeeds = '';
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds; editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
editor.setValue(editorValue); editor.setValue(editorValue.replace(/\<script\>/gi, 'fccss').replace(/\<\/script\>/gi, 'fcces');
editor.refresh(); editor.refresh();
var resetEditor = function resetEditor() { var resetEditor = function resetEditor() {
@ -260,7 +260,7 @@ var resetEditor = function resetEditor() {
updatePreview(); updatePreview();
codeStorage.updateStorage(); codeStorage.updateStorage();
}; };
/*
var challengeSeed = challengeSeed || null; var challengeSeed = challengeSeed || null;
var allSeeds = ''; var allSeeds = '';
(function() { (function() {
@ -274,4 +274,4 @@ var allSeeds = '';
}, 200); }, 200);
})(); })();
})(); })();
*/