Skip to content

Commit

Permalink
allow query strings (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloep committed Nov 11, 2021
1 parent f20296c commit 2fca014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/base-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (configScript) {
// Use the data-shoelace attribute
setBasePath(configScript.getAttribute('data-shoelace')!);
} else {
const fallbackScript = scripts.find(s => /shoelace(\.min)?\.js$/.test(s.src));
const fallbackScript = scripts.find(s => /shoelace(\.min)?\.js($|\?)/.test(s.src));
let path = '';

if (fallbackScript) {
Expand Down

0 comments on commit 2fca014

Please sign in to comment.