Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/src/components/ChartDemo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const codeSnippet = getCodeSnippet()
if (window.astrochart) {
// Library already loaded — init immediately
initChart()
} else if (document.querySelector('script[src="' + baseUrl + 'astrochart.js"]')) {
} else if (document.querySelector('script[src="' + baseUrl + '/astrochart.js"]')) {
// Another instance is already loading the bundle — queue up
window.__astrochartQueue = window.__astrochartQueue || []
window.__astrochartQueue.push(initChart)
Expand All @@ -123,7 +123,7 @@ const codeSnippet = getCodeSnippet()
window.__astrochartQueue.push(initChart)

var script = document.createElement('script')
script.src = baseUrl + 'astrochart.js'
script.src = baseUrl + '/astrochart.js'
script.onload = function () {
var queue = window.__astrochartQueue || []
window.__astrochartQueue = []
Expand Down
Loading