()
| 161 | } |
| 162 | |
| 163 | function getActiveSourceId() { |
| 164 | const paneKey = window.activePane === 'secondary' ? 'secondary' : 'primary'; |
| 165 | const paneSource = window.__frPaneState?.[paneKey]?.sourceId || ''; |
| 166 | if (paneSource) return paneSource; |
| 167 | const sel = document.getElementById('sourceSelector'); |
| 168 | if (sel && sel.value) return sel.value; |
| 169 | try { |
| 170 | const stored = localStorage.getItem('fr_active_source'); |
| 171 | if (stored) return stored; |
| 172 | } catch (e) {} |
| 173 | return ''; |
| 174 | } |
| 175 | |
| 176 | function getPaneSourceIdForElement(el) { |
| 177 | const pane = el?.closest?.('.file-list-pane'); |
no outgoing calls
no test coverage detected