allow query strings (#582)

This commit is contained in:
Marcel Kuhmann
2021-11-11 16:55:26 +01:00
committed by GitHub
parent f20296cf7c
commit 2fca01401b

View File

@@ -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) {