From f2cb34cc35b44da168aa83baf839cfc2fa55e1e9 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 20 Dec 2024 15:39:35 -0500 Subject: [PATCH] fix reload script to use static array rather than a live HtmlCollection --- Oqtane.Server/wwwroot/js/reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/wwwroot/js/reload.js b/Oqtane.Server/wwwroot/js/reload.js index 52397ba5..bb9ad076 100644 --- a/Oqtane.Server/wwwroot/js/reload.js +++ b/Oqtane.Server/wwwroot/js/reload.js @@ -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) {