adds 'before using methods' example
The document does not inform that the webview element has to be loaded before using the element's methods. It is not clear.
This commit is contained in:
parent
8aa815e6d1
commit
549ec51bce
1 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,14 @@ If "on", the guest page will have web security disabled.
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
|
The webview element must be loaded before using the methods.
|
||||||
|
**Example**
|
||||||
|
```javascript
|
||||||
|
webview.addEventListener("dom-ready", function(){
|
||||||
|
webview.openDevTools();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
### `<webview>`.getUrl()
|
### `<webview>`.getUrl()
|
||||||
|
|
||||||
Returns URL of guest page.
|
Returns URL of guest page.
|
||||||
|
|
Loading…
Reference in a new issue