(t, e)
| 294 | return e |
| 295 | } |
| 296 | setdata(t, e) { |
| 297 | let s = !1; |
| 298 | if (/^@/.test(e)) { |
| 299 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; |
| 300 | try { |
| 301 | const e = JSON.parse(h); |
| 302 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) |
| 303 | } catch (e) { |
| 304 | const o = {}; |
| 305 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) |
| 306 | } |
| 307 | } else s = this.setval(t, e); |
| 308 | return s |
| 309 | } |
| 310 | getval(t) { |
| 311 | return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null |
| 312 | } |
no test coverage detected