diff options
author | lxf <sng@luxagraf.net> | 2022-01-02 14:30:04 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-01-02 14:30:04 -0500 |
commit | 1123d655bd6708fba056d9800af61e9f2e8bd6eb (patch) | |
tree | 0d9b054f0927e950f6df04c5e1b358c0fc1ecfdb /app/utils | |
parent | 0025ca538247df8f24d21ef59c1d587d00176fcc (diff) |
loc: made walks display track on map
Diffstat (limited to 'app/utils')
-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"; }); |