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

Function keepCreateDropdownWired

public/js/main.js:1521–1530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1519 }
1520
1521 function keepCreateDropdownWired() {
1522 if (window.__FR_FLAGS.wired.keepCreateMO) return;
1523 window.__FR_FLAGS.wired.keepCreateMO = true;
1524 const mo = new MutationObserver(() => {
1525 const btn = document.getElementById('createBtn');
1526 const menu = document.getElementById('createMenu');
1527 if (btn && menu && !btn.__bound) wireCreateDropdown();
1528 });
1529 mo.observe(document.body, { childList: true, subtree: true });
1530 }
1531
1532 // ---- Folder-level helpers: de-dupe selects only when a modal opens ----
1533 function dedupeSelect(el) {

Callers 1

main.jsFile · 0.85

Calls 1

wireCreateDropdownFunction · 0.85

Tested by

no test coverage detected