Skip to content

Commit

Permalink
clients(viewer): fix preload links (#15515)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored Oct 4, 2023
1 parent fa70317 commit 0e0e48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/gh-pages-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class GhPagesApp {

if (this.preloadScripts.length) {
const preloads = this.preloadScripts.map(fileName =>
`<link rel="preload" href="${fileName}" as="script" crossorigin="anonymous" />`
`<link rel="preload" href="./src/${fileName}" as="script" crossorigin="anonymous" />`
).join('\n');
const endHeadIndex = htmlSrc.indexOf('</head>');
if (endHeadIndex === -1) {
Expand Down

0 comments on commit 0e0e48c

Please sign in to comment.