MCPcopy Index your code
hub / github.com/MALSync/MALSync / runCallback

Function runCallback

src/chibiScript/functions/core/coreFunctions.ts:393–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391 domFunctions.setStyle(ctx, document.documentElement, name, value, true);
392 }
393 async function runCallback() {
394 let result;
395 if (ctx.isAsync()) {
396 result = await ctx.runAsync(callback);
397 } else {
398 result = ctx.run(callback);
399 }
400
401 if (result && result instanceof ChibiReturn) {
402 result = result.getValue();
403 }
404
405 if (result && result !== localStore.getItem(storageKey)) {
406 styleSet(result);
407 localStore.setItem(storageKey, result);
408 }
409 }
410 },
411};

Callers

nothing calls this directly

Calls 5

styleSetFunction · 0.85
isAsyncMethod · 0.80
runAsyncMethod · 0.45
runMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected