Skip to content

Commit

Permalink
Merge pull request #4942 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix reload script to use static array rather than a live HtmlCollection
  • Loading branch information
sbwalker authored Dec 20, 2024
2 parents 723ce62 + f2cb34c commit 3b8a51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Oqtane.Server/wwwroot/js/reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b8a51e

Please sign in to comment.