()
| 1589 | } |
| 1590 | |
| 1591 | function getGlobalActiveSourceId() { |
| 1592 | try { |
| 1593 | if (typeof window.__frGetActiveSourceId === 'function') { |
| 1594 | return window.__frGetActiveSourceId() || ''; |
| 1595 | } |
| 1596 | } catch (e) { /* ignore */ } |
| 1597 | const sel = document.getElementById('sourceSelector'); |
| 1598 | if (sel && sel.value) return sel.value; |
| 1599 | try { |
| 1600 | const stored = localStorage.getItem('fr_active_source'); |
| 1601 | if (stored) return stored; |
| 1602 | } catch (e) { /* ignore */ } |
| 1603 | return ''; |
| 1604 | } |
| 1605 | |
| 1606 | function getSourceNameById(sourceId) { |
| 1607 | const id = String(sourceId || '').trim(); |
no outgoing calls
no test coverage detected