MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / toggleActiveScript

Function toggleActiveScript

scripts/helpers/utils.js:211–216  ·  view source on GitHub ↗
(scriptId)

Source from the content-addressed store, hash-verified

209}
210
211export async function toggleActiveScript(scriptId) {
212 let current = await isActiveScript(scriptId);
213 let newVal = !current;
214 setActiveScript(scriptId, newVal);
215 return newVal;
216}
217
218// #endregion
219

Callers

nothing calls this directly

Calls 2

isActiveScriptFunction · 0.85
setActiveScriptFunction · 0.85

Tested by

no test coverage detected