MCPcopy Create free account
hub / github.com/error311/FileRise / closeModal

Function closeModal

public/js/filePreview.js:397–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395 closeBtn.addEventListener('mouseleave', onCloseHoverLeave);
396
397 function closeModal() {
398 try { overlay.querySelectorAll("video,audio").forEach(m => { try{m.pause()}catch(_){}}); } catch (e) {}
399 if (overlay._onKey) window.removeEventListener('keydown', overlay._onKey);
400 overlay.remove();
401 }
402 closeBtn.addEventListener("click", closeModal);
403 overlay.addEventListener("click", (e) => { if (e.target === overlay) closeModal(); });
404

Callers 1

ensureMediaModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected