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
commit 3b8a51e855
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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