MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / setval

Method setval

wxapp/miaoyouHome.js:276–289  ·  view source on GitHub ↗
(t, s)

Source from the content-addressed store, hash-verified

274 }
275 }
276 setval(t, s) {
277 if (this.isSurge() || this.isLoon()) {
278 return $persistentStore.write(t, s);
279 } else if (this.isQuanX()) {
280 return $prefs.setValueForKey(t, s);
281 } else if (this.isNode()) {
282 this.data = this.loaddata();
283 this.data[s] = t;
284 this.writedata();
285 return true;
286 } else {
287 return this.data && this.data[s] || null;
288 }
289 }
290 initGotEnv(t) {
291 this.got = this.got ? this.got : require("got");
292 this.cktough = this.cktough ? this.cktough : require("tough-cookie");

Callers 1

setdataMethod · 0.45

Calls 6

isSurgeMethod · 0.45
isLoonMethod · 0.45
isQuanXMethod · 0.45
isNodeMethod · 0.45
loaddataMethod · 0.45
writedataMethod · 0.45

Tested by

no test coverage detected