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

Function refreshModalState

public/js/main.js:495–500  ·  view source on GitHub ↗
(modal)

Source from the content-addressed store, hash-verified

493}
494
495function refreshModalState(modal) {
496 if (!modal || !document.body.contains(modal)) return;
497 const visible = isModalVisible(modal);
498 if (visible && !modal.__frOpen) handleModalOpen(modal);
499 if (!visible && modal.__frOpen) handleModalClose(modal);
500}
501
502function closeModalElement(modal) {
503 if (!modal) return false;

Callers

nothing calls this directly

Calls 3

isModalVisibleFunction · 0.85
handleModalOpenFunction · 0.85
handleModalCloseFunction · 0.85

Tested by

no test coverage detected