Fix/Loop Protect - Remove noprotect from saved code

This commit is contained in:
Stuart
2016-06-14 00:25:42 +01:00
parent 9ac80998a7
commit b2e2eaa594
3 changed files with 12 additions and 3 deletions

View File

@@ -5,6 +5,10 @@ window.common = (function(global) {
common = { init: [] }
} = global;
const {
replaceNoprotect
} = common;
var challengePrefix = [
'Bonfire: ',
'Waypoint: ',
@@ -54,7 +58,7 @@ window.common = (function(global) {
console.log('unable to save to storage');
return code;
}
localStorage.setItem(key + 'Val', code);
localStorage.setItem(key + 'Val', replaceNoprotect(code));
return code;
}
};