Merge pull request #9750 from electron/path-csd-props
Make clearStorageData options object's property optional
This commit is contained in:
commit
b328a238a6
1 changed files with 3 additions and 3 deletions
|
@ -109,12 +109,12 @@ Clears the session’s HTTP cache.
|
|||
#### `ses.clearStorageData([options, callback])`
|
||||
|
||||
* `options` Object (optional)
|
||||
* `origin` String - Should follow `window.location.origin`’s representation
|
||||
* `origin` String - (Optional) Should follow `window.location.origin`’s representation
|
||||
`scheme://host:port`.
|
||||
* `storages` String[] - The types of storages to clear, can contain:
|
||||
* `storages` String[] - (Optional) The types of storages to clear, can contain:
|
||||
`appcache`, `cookies`, `filesystem`, `indexdb`, `localstorage`,
|
||||
`shadercache`, `websql`, `serviceworkers`
|
||||
* `quotas` String[] - The types of quotas to clear, can contain:
|
||||
* `quotas` String[] - (Optional) The types of quotas to clear, can contain:
|
||||
`temporary`, `persistent`, `syncable`.
|
||||
* `callback` Function (optional) - Called when operation is done.
|
||||
|
||||
|
|
Loading…
Reference in a new issue