Skip to content

Commit ef32bf1

Browse files
Fix JS error on reparse: change const to let for reassigned variable
populateArticle() reassigns j after a reparse, but j was declared as const which throws TypeError in strict mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ccc62e8 commit ef32bf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ <h3>Tölfræði</h3>
325325

326326
// Include the tokens in the page script as a JSON structure
327327
// noinspection SyntaxError
328-
const j =
328+
let j =
329329
{{ article.tokens | safe }}
330330
;
331331

0 commit comments

Comments
 (0)