MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / refresh

Function refresh

src/code_embed.ts:411–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409 if (embedPrintRefreshByDoc.has(doc)) return;
410
411 const refresh = () => {
412 ensureCodeSpaceStylesInDocument(doc, plugin);
413 queueAllCodeEmbedsInDocument(doc, docWindow, plugin);
414 };
415
416 docWindow.addEventListener("beforeprint", refresh);
417

Callers 1

onMediaChangeFunction · 0.85

Tested by

no test coverage detected