()
| 149 | } |
| 150 | |
| 151 | function getActiveSourceId() { |
| 152 | const paneSource = getActivePaneSourceId(); |
| 153 | if (paneSource) return paneSource; |
| 154 | const sel = document.getElementById('sourceSelector'); |
| 155 | if (sel && sel.value) return sel.value; |
| 156 | try { |
| 157 | const stored = localStorage.getItem('fr_active_source'); |
| 158 | if (stored) return stored; |
| 159 | } catch (e) {} |
| 160 | return ''; |
| 161 | } |
| 162 | |
| 163 | function getSourceNameById(sourceId) { |
| 164 | const id = String(sourceId || '').trim(); |
no test coverage detected