mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add docs
This commit is contained in:
@@ -207,7 +207,13 @@ See [session documentation](session.md) for this object's methods.
|
||||
* `extraHeaders` String - Extra headers separated by "\n"
|
||||
|
||||
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()`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user