Skip to content

Commit eb7a559

Browse files
Clarify documentation for inject_js_start and inject_js_end
2 parents edefe04 + 98c3200 commit eb7a559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/References/Window.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ nw.Window.open('https://github.com/nwjs/nw.js', {}, function(new_win) {
7171
* `url` `{String}` URL to be loaded in the opened window
7272
* `options` `{Object}` _Optional_ see [Window subfields](Manifest Format.md#window-subfields) in manifest format. And following extra fields can also be used in options.
7373
- `new_instance` `{Boolean}` _Optional_ whether to open a new window in a separate render process.
74-
- `inject_js_start` `{String}` _Optional_ the script to be injected before document loaded. See [Manifest format](Manifest Format.md#inject_js_start)
75-
- `inject_js_end` `{String}` _Optional_ the script to be injected before document unloaded. See [Manifest format](Manifest Format.md#inject_js_end)
74+
- `inject_js_start` `{String}` _Optional_ the script to be injected before any DOM is constructed and any script is run. See [Manifest format](Manifest Format.md#inject_js_start)
75+
- `inject_js_end` `{String}` _Optional_ the script to be injected after the document object is loaded, before onload event is fired. See [Manifest format](Manifest Format.md#inject_js_end)
7676
- `id` `{String}` _Optional_ the `id` used to identify the window. This will be used to remember the size and position of the window and restore that geometry when a window with the same id is later opened. [See also the Chrome App documentation](https://developer.chrome.com/apps/app_window#type-CreateWindowOptions)
7777
* `callback(win)` `{Function}` _Optional_ callback when with the opened native `Window` object
7878

0 commit comments

Comments
 (0)