assets/js/lib/lookbook.js in lookbook-2.0.1 vs assets/js/lib/lookbook.js in lookbook-2.0.2
- old
+ new
@@ -112,10 +112,12 @@
document.currentScript ||
document.querySelector('script[src*="lookbook.js"]');
const scriptSrc = script.src;
if (scriptSrc && scriptSrc.includes("lookbook-assets")) {
- return scriptSrc.replace("lookbook-assets/js/lookbook.js", "lookbook");
+ return scriptSrc
+ .split("?")[0]
+ .replace("lookbook-assets/js/lookbook.js", "lookbook");
}
return `//${location.host}/lookbook`;
}