Skip to content

Commit d9dbb75

Browse files
authored
Clarify README, that onOpen takes a window object (#115)
1 parent 486dc1e commit d9dbb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The `children` contents is what will be rendered into the new popup window. In t
4545
| `features` | `Object` | `{}` | The set of window features ([more details on `windowFeatures`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_features)). |
4646
| `onUnload` | `Function` | `undefined` | A function to be triggered before the new window unload. |
4747
| `onBlock` | `Function` | `undefined` | A function to be triggered when the new window could not be opened. |
48-
| `onOpen` | `Function` | `undefined` | A function to be triggered when window open by library. |
48+
| `onOpen` | `Function(w: Window)` | `undefined` | A function to be triggered when window open by library. |
4949
| `center` | `String` | `parent` | Indicate how to center the new window. Valid values are: `parent` or `screen`. `parent` will center the new window according to its _parent_ window. `screen` will center the new window according to the _screen_. |
5050
| `copyStyles` | `Boolean` | `true` | If specified, copy styles from parent window's document. |
5151
| `closeOnUnmount` | `Boolean` | `true` | If specified, close the new window on unmount. |

0 commit comments

Comments
 (0)