dont append to body directly but c4k-content div instead
This commit is contained in:
parent
43bf0433dd
commit
494241a15a
1 changed files with 3 additions and 4 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue