This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -85,3 +85,9 @@ exports._contentDocument = function (iframe) {
8585 return iframe . contentDocument ;
8686 } ;
8787} ;
88+
89+ exports . _contentWindow = function ( iframe ) {
90+ return function ( ) {
91+ return iframe . contentWindow ;
92+ } ;
93+ } ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import Data.Maybe (Maybe)
2020import Data.Nullable (Nullable , toMaybe )
2121
2222import DOM (DOM )
23- import DOM.HTML.Types (HTMLIFrameElement )
23+ import DOM.HTML.Types (Window , HTMLIFrameElement )
2424import DOM.Node.Types (Document )
2525
2626foreign import src :: forall eff . HTMLIFrameElement -> Eff (dom :: DOM | eff ) String
@@ -41,8 +41,10 @@ foreign import height :: forall eff. HTMLIFrameElement -> Eff (dom :: DOM | eff)
4141foreign import setHeight :: forall eff . String -> HTMLIFrameElement -> Eff (dom :: DOM | eff ) Unit
4242
4343foreign import _contentDocument :: forall eff . HTMLIFrameElement -> Eff (dom :: DOM | eff ) (Nullable Document )
44+ foreign import _contentWindow :: forall eff . HTMLIFrameElement -> Eff (dom :: DOM | eff ) (Nullable Window )
4445
4546contentDocument :: forall eff . HTMLIFrameElement -> Eff (dom :: DOM | eff ) (Maybe Document )
4647contentDocument = map toMaybe <<< _contentDocument
4748
48- -- readonly attribute WindowProxy? contentWindow;
49+ contentWindow :: forall eff . HTMLIFrameElement -> Eff (dom :: DOM | eff ) (Maybe Window )
50+ contentWindow = map toMaybe <<< _contentWindow
You can’t perform that action at this time.
0 commit comments