MCPcopy Create free account
hub / github.com/Necriso/ScriptableWidgets / storeConfig

Function storeConfig

tankstellenpreisev2_beta.js:89–97  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

87 }
88
89async function storeConfig(data)
90{
91 try {
92 files.writeString(configPath, JSON.stringify(data))
93 } catch (e) {
94 console.log("Creating Config failed!")
95 console.log(e)
96 }
97}
98
99async function loadConfig() {
100 let data

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected