MCPcopy
hub / github.com/kickscondor/fraidycat / changeSetting

Function changeSetting

src/js/storage.js:939–949  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

937 // Write changes to settings.
938 //
939 async changeSetting(s) {
940 let val = this.settings[s.name]
941 if (s.name.startsWith('mode-')) {
942 val = val ? null : s.value
943 } else {
944 val = s.value
945 }
946 this.settings[s.name] = val
947 this.update({op: 'replace', path: `/settings`, value: this.settings})
948 return this.writeSynced({settings: this.settings})
949 },
950
951 //
952 // Remove a follow.

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
writeSyncedMethod · 0.45

Tested by

no test coverage detected