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

Function adapterStatus

Debug/Real-time-debug.js:32–41  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

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);

Callers 1

nobydaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected