File tree 3 files changed +10
-0
lines changed 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
7
7
Breaking changes:
8
8
9
9
New features:
10
+ - Added ` close ` function for ` Window ` (#78 by @jmp-0x7C0 )
10
11
11
12
Bugfixes:
12
13
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ export function _open(url) {
82
82
} ;
83
83
}
84
84
85
+ export function close ( window ) {
86
+ return function ( ) {
87
+ return window . close ( ) ;
88
+ } ;
89
+ }
90
+
85
91
export function outerHeight ( window ) {
86
92
return function ( ) {
87
93
return window . outerHeight ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module Web.HTML.Window
13
13
, moveBy
14
14
, moveTo
15
15
, open
16
+ , close
16
17
, outerHeight
17
18
, outerWidth
18
19
, print
@@ -89,6 +90,8 @@ foreign import _open
89
90
-> Window
90
91
-> Effect (Nullable Window )
91
92
93
+ foreign import close :: Window -> Effect Unit
94
+
92
95
foreign import outerHeight :: Window -> Effect Int
93
96
94
97
foreign import outerWidth :: Window -> Effect Int
You can’t perform that action at this time.
0 commit comments