Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2017 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/89f46e55b02d335a43dfc083f531eff6 to your computer and use it in GitHub Desktop.
Save anonymous/89f46e55b02d335a43dfc083f531eff6 to your computer and use it in GitHub Desktop.
(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