add spec and docs
This commit is contained in:
parent
5189147021
commit
150b540e72
4 changed files with 53 additions and 0 deletions
|
@ -131,6 +131,23 @@ page is loaded, use the `setUserAgent` method to change the user agent.
|
|||
|
||||
If "on", the guest page will have web security disabled.
|
||||
|
||||
### partition
|
||||
|
||||
```html
|
||||
<webview src="https://github.com" partition="persist:github"></webview>
|
||||
<webview src="http://electron.atom.io" partition="electron"></webview>
|
||||
```
|
||||
|
||||
Sets the storage partition used by the `webview`. If the storage partition ID starts with `persist:`,
|
||||
the `webview` will use a persistent storage partition available to all `webview` in the app with
|
||||
the same storage partition ID. If the ID is unset or if there is no `persist:` prefix, the `webview` will
|
||||
use an in-memory storage partition. By assigning the same partition ID, multiple `webview`
|
||||
can share the same storage partition.
|
||||
|
||||
This value can only be modified before the first navigation, since the storage partition of an active
|
||||
renderer process cannot change. Subsequent attempts to modify the value will fail with a
|
||||
DOM exception.
|
||||
|
||||
## Methods
|
||||
|
||||
The `webview` tag has the following methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue