dont append to body directly but c4k-content div instead

This commit is contained in:
bom 2021-10-22 15:33:32 +02:00
parent 43bf0433dd
commit 494241a15a

View file

@ -73,10 +73,9 @@
.createRange .createRange
(.createContextualFragment html-string))) (.createContextualFragment html-string)))
(defn append-to-body (defn append-to-c4k-content
[js-obj] [js-obj]
(-> js/document (-> (get-element-by-id "c4k-content")
.-body
(.appendChild js-obj))) (.appendChild js-obj)))
(defn append-hickory (defn append-hickory
@ -84,7 +83,7 @@
(-> hickory-obj (-> hickory-obj
(hr/hickory-to-html) (hr/hickory-to-html)
(create-js-obj-from-html) (create-js-obj-from-html)
(append-to-body))) (append-to-c4k-content)))
(defn generate-feedback-tag (defn generate-feedback-tag
[id] [id]