MCPcopy
hub / github.com/zxlie/FeHelper / refreshEditors

Function refreshEditors

apps/page-monkey/index.js:315–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313 },
314
315 refreshEditors() {
316 if (cmCode) cmCode.setValue(this.editCM.mScript || '');
317 if (cmStyle) cmStyle.setValue(this.editCM.mStyle || '');
318 if (cmFull) cmFull.setValue(window.TampermonkeyParser.stringify(this.editCM));
319 setTimeout(() => {
320 cmCode && cmCode.refresh();
321 cmStyle && cmStyle.refresh();
322 cmFull && cmFull.refresh();
323 }, 50);
324 },
325
326 createMonkey() {
327 this.editing = true;

Callers

nothing calls this directly

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected