mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
docs: remove obsolete websql from clearStorageData storages list (#51097)
WebSQL support was removed in Electron 31 (see breaking-changes.md), and the 'websql' key was subsequently removed from the storages lookup in session.ClearStorageData() during the Chromium 126 bump (#41868). The documentation for `ses.clearStorageData()` was not updated at the time and still lists `websql` as a valid value for the `storages` option. Passing `websql` now silently has no effect, leaving the docs out of sync with the implementation. Remove `websql` from the documented list of storage types so the documentation matches the actual behavior. Refs: #33900 Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
This commit is contained in:
@@ -650,7 +650,7 @@ Clears the session’s HTTP cache.
|
||||
`scheme://host:port`.
|
||||
* `storages` string[] (optional) - The types of storages to clear, can be
|
||||
`cookies`, `filesystem`, `indexdb`, `localstorage`,
|
||||
`shadercache`, `websql`, `serviceworkers`, `cachestorage`. If not
|
||||
`shadercache`, `serviceworkers`, `cachestorage`. If not
|
||||
specified, clear all storage types.
|
||||
|
||||
Returns `Promise<void>` - resolves when the storage data has been cleared.
|
||||
|
||||
Reference in New Issue
Block a user