scripting: expose Navigator object with `getNavigator()
This commit is contained in:
parent
a90211223f
commit
865147477f
3 changed files with 17 additions and 3 deletions
|
|
@ -353,8 +353,15 @@ Run `callback` function as if executed by another that widget matches specified
|
|||
----
|
||||
|
||||
#### `reload(keepState)`
|
||||
- `keepState` (optional): `true` by default, set to false to discard the client's state.
|
||||
- `keepState` (optional): `true` by default, set to false to discard the client's state.
|
||||
|
||||
Reload the client application. Cannot be called from the `onCreate` property.
|
||||
|
||||
If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
|
||||
|
||||
|
||||
----
|
||||
|
||||
#### `getNavigator()`
|
||||
|
||||
Returns the instance of [Navigator](https://developer.mozilla.org/en-US/docs/Web/API/Navigator).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue