diff options
Diffstat (limited to 'app/utils/static')
-rw-r--r-- | app/utils/static/image-loader.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js index 707c1c5..5a5b3b4 100644 --- a/app/utils/static/image-loader.js +++ b/app/utils/static/image-loader.js @@ -41,7 +41,11 @@ function add_images(){ } document.addEventListener("DOMContentLoaded", function(event) { add_images(); - md = document.forms["post_form"].elements["body_markdown"]; + if (document.forms["post_form"]) { + md = document.forms["post_form"].elements["body_markdown"]; + } else { + md = document.forms["track_form"].elements["body_markdown"]; + } md.style.maxHeight = "300rem"; md.style.maxWidth = "300rem"; }); |