MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / setjson

Method setjson

env/env.js:96–102  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

94 return s
95 }
96 setjson(t, e) {
97 try {
98 return this.setdata(JSON.stringify(t), e)
99 } catch {
100 return !1
101 }
102 }
103 getScript(t) {
104 return new Promise(e => {
105 this.get({ url: t }, (t, s, a) => e(a))

Callers

nothing calls this directly

Calls 1

setdataMethod · 0.45

Tested by

no test coverage detected