Merge pull request #9750 from electron/path-csd-props

Make clearStorageData options object's property optional
This commit is contained in:
Zeke Sikelianos 2017-06-13 13:48:10 -07:00 committed by GitHub
commit b328a238a6

View file

@ -109,12 +109,12 @@ Clears the sessions 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.