Created
December 15, 2017 10:11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn ifr [] | |
(reagent/create-class {:component-did-mount #(do | |
(utils/log "iframe did mount") | |
(rf/dispatch [:run])) | |
:reagent-render (fn [] | |
(let [a @(rf/subscribe [:editors/iframe-update])] | |
[:iframe {:id "result-iframe" | |
;:a a | |
:name (str "result-iframe" a) | |
:class "iframe-result" | |
:sandbox "allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-modals allow-forms" | |
:allowTransparency "true" | |
:allowFullScreen "true"}]))})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment