Make clearStorageData options object's property optional

Fixes #9749
This commit is contained in:
Samuel Attard 2017-06-14 04:34:13 +10:00 committed by GitHub
parent 014aaccfc6
commit de066b8d13

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.