MCPcopy Create free account
hub / github.com/NobyDa/Script / write

Function write

BDTieBa-DailyBonus/TieBa.js:254–257  ·  view source on GitHub ↗
(value, key)

Source from the content-addressed store, hash-verified

252 if (isSurge) $notification.post(title, subtitle, message)
253 }
254 const write = (value, key) => {
255 if (isQuanX) return $prefs.setValueForKey(value, key)
256 if (isSurge) return $persistentStore.write(value, key)
257 }
258 const read = (key) => {
259 if (isQuanX) return $prefs.valueForKey(key)
260 if (isSurge) return $persistentStore.read(key)

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected