(title, subtitle, message)
| 248 | const isSurge = typeof $httpClient != "undefined" |
| 249 | const isQuanX = typeof $task != "undefined" |
| 250 | const notify = (title, subtitle, message) => { |
| 251 | if (isQuanX) $notify(title, subtitle, message) |
| 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) |