Browse Source

Make clearStorageData options object's property optional

Fixes #9749
Samuel Attard 7 years ago
parent
commit
de066b8d13
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/api/session.md

+ 3 - 3
docs/api/session.md

@@ -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.