File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based
77Breaking changes:
88
99New features:
10+ - Added ` close ` function for ` Window ` (#78 by @jmp-0x7C0 )
1011
1112Bugfixes:
1213
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ export function _open(url) {
8282 } ;
8383}
8484
85+ export function close ( window ) {
86+ return function ( ) {
87+ return window . close ( ) ;
88+ } ;
89+ }
90+
8591export function outerHeight ( window ) {
8692 return function ( ) {
8793 return window . outerHeight ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module Web.HTML.Window
1313 , moveBy
1414 , moveTo
1515 , open
16+ , close
1617 , outerHeight
1718 , outerWidth
1819 , print
@@ -89,6 +90,8 @@ foreign import _open
8990 -> Window
9091 -> Effect (Nullable Window )
9192
93+ foreign import close :: Window -> Effect Unit
94+
9295foreign import outerHeight :: Window -> Effect Int
9396
9497foreign import outerWidth :: Window -> Effect Int
You can’t perform that action at this time.
0 commit comments