()
| 11 | const CHECK_EXISTING_URL = withBase('/api/upload/checkExisting.php'); |
| 12 | |
| 13 | function getActiveUploadSourceId() { |
| 14 | const paneKey = window.activePane === 'secondary' ? 'secondary' : 'primary'; |
| 15 | const paneSource = window.__frPaneState?.[paneKey]?.sourceId || ''; |
| 16 | if (paneSource) return paneSource; |
| 17 | const sel = document.getElementById('sourceSelector'); |
| 18 | if (sel && sel.value) return sel.value; |
| 19 | try { |
| 20 | const stored = localStorage.getItem('fr_active_source'); |
| 21 | if (stored) return stored; |
| 22 | } catch (e) {} |
| 23 | return ''; |
| 24 | } |
| 25 | |
| 26 | function getResumableChunkSizeBytes() { |
| 27 | const cfg = window.__FR_SITE_CFG__ || window.siteConfig || {}; |
no outgoing calls
no test coverage detected