File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 = []
You can’t perform that action at this time.
0 commit comments