MCPcopy Create free account
hub / github.com/Moli-X/Resources / write

Function write

Script/ZsHc.js:48–51  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

46}
47
48function write(key, value) {
49 if (isLoon || isSurge) return $persistentStore.write(value, key);
50 if (isQX) return $prefs.setValueForKey(value, key);
51}
52
53function notify(title, subtitle, message) {
54 if (isLoon) $notification.post(title, subtitle, message);

Callers 1

ZsHc.jsFile · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected