From d64cc3fbf2319e9b3d027785dd6ebc72b851a11f Mon Sep 17 00:00:00 2001 From: lqdev Date: Tue, 20 Feb 2024 23:32:54 +0100 Subject: [PATCH] fix console error --- static/js/components/literate-programming.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/components/literate-programming.js b/static/js/components/literate-programming.js index 4797945..7a46160 100644 --- a/static/js/components/literate-programming.js +++ b/static/js/components/literate-programming.js @@ -183,7 +183,9 @@ class OutputMode { } }); - this.frame.placeholderImage.classList.add("loading"); + if (this.frame.placeholderImage != null) { + this.frame.placeholderImage.classList.add("loading"); + } this.frame.program.onChanged.push(_ => this.evaluate()); }