(response)
| 30 | const isSurge = typeof $httpClient != "undefined"; |
| 31 | const isQuanX = typeof $task != "undefined"; |
| 32 | const adapterStatus = (response) => { |
| 33 | if (response) { |
| 34 | if (response.status) { |
| 35 | response["statusCode"] = response.status |
| 36 | } else if (response.statusCode) { |
| 37 | response["status"] = response.statusCode |
| 38 | } |
| 39 | } |
| 40 | return response |
| 41 | }; |
| 42 | this.write = (value, key) => { |
| 43 | if (isQuanX) return $prefs.setValueForKey(value, key); |
| 44 | if (isSurge) return $persistentStore.write(value, key); |