add docs
This commit is contained in:
parent
2a7f874373
commit
e2959ed3fc
1 changed files with 7 additions and 1 deletions
|
@ -207,7 +207,13 @@ See [session documentation](session.md) for this object's methods.
|
||||||
* `extraHeaders` String - Extra headers separated by "\n"
|
* `extraHeaders` String - Extra headers separated by "\n"
|
||||||
|
|
||||||
Loads the `url` in the window, the `url` must contain the protocol prefix,
|
Loads the `url` in the window, the `url` must contain the protocol prefix,
|
||||||
e.g. the `http://` or `file://`.
|
e.g. the `http://` or `file://`. If the load should bypass http cache then
|
||||||
|
use the `pragma` header to achieve it.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const options = {"extraHeaders" : "pragma: no-cache\n"}
|
||||||
|
webContents.loadURL(url, options)
|
||||||
|
```
|
||||||
|
|
||||||
### `webContents.getURL()`
|
### `webContents.getURL()`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue