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

Function onFileRemoved

src/pages/markdownPreview/index.js:287–294  ·  view source on GitHub ↗
(removedFile)

Source from the content-addressed store, hash-verified

285 };
286
287 const onFileRemoved = (removedFile) => {
288 if (removedFile?.id !== previewState.file?.id) return;
289 if ($page.isConnected) {
290 $page.hide();
291 } else {
292 dispose();
293 }
294 };
295
296 previewState.content.addEventListener("click", onContentClick, true);
297 editorManager.on("file-content-changed", onFileChanged);

Callers

nothing calls this directly

Calls 2

disposeFunction · 0.70
hideMethod · 0.45

Tested by

no test coverage detected