()
| 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) { |
no test coverage detected