Skip to content

Commit 72d9f8e

Browse files
seagaterCopilot
andauthored
Update docs/_static/version-selector.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a8f9ce6 commit 72d9f8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/_static/version-selector.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
}
4747
} catch (e) {
4848
// URL parsing failed, continue to fallback
49+
// Log a warning to aid debugging when the primary detection method fails.
50+
if (typeof console !== 'undefined' && typeof console.warn === 'function') {
51+
console.warn('version-selector: Failed to parse script URL for base path detection; falling back to location-based detection.', e);
52+
}
4953
}
5054
}
5155
}

0 commit comments

Comments
 (0)