
const prefix = 'webjcs:'

class Settings {
  constructor (defaults = {}) {
    this.defaults = defaults
    this.settings = {}
  }

  set (key, value) {
    window.localStorage.setItem(prefix + key, JSON.stringify(value))
  }
  setDefault (key) {
    this.set(key, this.defaults[key])
  }
  get (key) {
    let item = window.localStorage.getItem(prefix + key)
    if (item === null) item = this.defaults[key]
    return item
  }
}

module.exports = new Settings({
  disable_webgl: false
})

@@ -403,16 +403,49 @@
 ts%5Bkey%5D%0A
+    else item = JSON.parse(item)%0A
     retu

Fix settings