From 9d5155cf8892e76c610b6e78ec52be0345835a07 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 2 Sep 2018 10:36:13 -0600 Subject: added check for image loader.js --- app/utils/static/image-loader.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/utils') diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js index f68da83..87be0c8 100644 --- a/app/utils/static/image-loader.js +++ b/app/utils/static/image-loader.js @@ -1,7 +1,9 @@ function add_images(){ var el = document.getElementById("id_body_markdown"); - var iframe = ''; - el.insertAdjacentHTML('afterend', iframe); + if (el){ + var iframe = ''; + el.insertAdjacentHTML('afterend', iframe); + } var featured_image = document.getElementById("id_featured_image") -- cgit v1.2.3-70-g09d2