settings: refactor settings store
read-only: pass flag with index.html response theme: clean & remove old themes
This commit is contained in:
parent
a6b82a4c93
commit
a588fb2b4a
23 changed files with 203 additions and 418 deletions
|
|
@ -9,7 +9,7 @@ window.PACKAGE = require('../../package.json')
|
|||
|
||||
window.LOADING = null
|
||||
|
||||
window.READ_ONLY = false
|
||||
window.READ_ONLY = window.READ_ONLY || false
|
||||
window.GRIDWIDTH = 10
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -94,11 +94,6 @@ module.exports = {
|
|||
|
||||
},
|
||||
|
||||
readOnly: function(){
|
||||
READ_ONLY = true
|
||||
if (editor.enabled) editor.disable()
|
||||
},
|
||||
|
||||
reload: function(){
|
||||
|
||||
var id = Math.random(),
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Vm {
|
|||
this.registerGlobals()
|
||||
|
||||
// detach sandbox
|
||||
document.documentElement.appendChild(this.sandbox)
|
||||
document.documentElement.removeChild(this.sandbox)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue