Merge pull request #4942 from sbwalker/dev

fix reload script to use static array rather than a live HtmlCollection
This commit is contained in:
Shaun Walker
2024-12-20 15:39:50 -05:00
committed by GitHub

View File

@ -14,7 +14,7 @@ export function onUpdate() {
// iterate over all script elements in page
const scripts = document.getElementsByTagName("script");
for (const script of scripts) {
for (const script of Array.from(scripts)) {
let key = getKey(script);
let scriptInfo = scriptInfoBySrc.get(key);
if (!scriptInfo) {