Skip to content

Commit cf7af4f

Browse files
MadScrewdriverzerolab
authored andcommitted
Fix for MathJax Preview Initialization Issue
The wagtailMathPreviews object was being reinitialized on every preview setup due to inconsistent casing, causing previously initialized previews to be overwritten and resulting in errors during Update() calls.
1 parent 68a569d commit cf7af4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wagtailmath/static/wagtailmath/js/wagtailmath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Preview {
8181

8282

8383
function initMathJaxPreview(id) {
84-
window.wagtailMathPreviews = window.WagtailMathPreviews || {};
84+
window.wagtailMathPreviews = window.wagtailMathPreviews || {};
8585

8686
window.wagtailMathPreviews[id] = new Preview(
8787
"MathPreview-" + id,

0 commit comments

Comments
 (0)