MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / callback

Function callback

src/settings/editorSettings.js:262–277  ·  view source on GitHub ↗

* Callback for settings page when an item is clicked * @param {string} key * @param {string} value

(key, value)

Source from the content-addressed store, hash-verified

260 * @param {string} value
261 */
262 function callback(key, value) {
263 switch (key) {
264 case "scroll-settings":
265 appSettings.uiSettings[key].show();
266 return;
267
268 case "editorFont":
269 fonts.setFont(value);
270
271 default:
272 appSettings.update({
273 [key]: value,
274 });
275 break;
276 }
277 }
278}

Callers

nothing calls this directly

Calls 2

showMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected