Skip to content

Commit c8a4cc6

Browse files
authored
add missing / to js path (#113)
1 parent ca007b3 commit c8a4cc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/src/components/ChartDemo.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const codeSnippet = getCodeSnippet()
113113
if (window.astrochart) {
114114
// Library already loaded — init immediately
115115
initChart()
116-
} else if (document.querySelector('script[src="' + baseUrl + 'astrochart.js"]')) {
116+
} else if (document.querySelector('script[src="' + baseUrl + '/astrochart.js"]')) {
117117
// Another instance is already loading the bundle — queue up
118118
window.__astrochartQueue = window.__astrochartQueue || []
119119
window.__astrochartQueue.push(initChart)
@@ -123,7 +123,7 @@ const codeSnippet = getCodeSnippet()
123123
window.__astrochartQueue.push(initChart)
124124

125125
var script = document.createElement('script')
126-
script.src = baseUrl + 'astrochart.js'
126+
script.src = baseUrl + '/astrochart.js'
127127
script.onload = function () {
128128
var queue = window.__astrochartQueue || []
129129
window.__astrochartQueue = []

0 commit comments

Comments
 (0)