(key)
| 41 | const isQX = typeof $task !== "undefined"; |
| 42 | |
| 43 | function read(key) { |
| 44 | if (isLoon || isSurge) return $persistentStore.read(key); |
| 45 | if (isQX) return $prefs.valueForKey(key); |
| 46 | } |
| 47 | |
| 48 | function write(key, value) { |
| 49 | if (isLoon || isSurge) return $persistentStore.write(value, key); |