From de066b8d1384fb89546295d0e53f0c3c8cda79ff Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 14 Jun 2017 04:34:13 +1000 Subject: [PATCH] Make clearStorageData options object's property optional Fixes #9749 --- docs/api/session.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/session.md b/docs/api/session.md index 7f249372957..fc76131f7bc 100644 --- a/docs/api/session.md +++ b/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.