feat: promisify session.clearStorageData() (#17249)
This commit is contained in:
parent
d34f81972d
commit
bbfa63fd9d
7 changed files with 57 additions and 20 deletions
|
@ -23,6 +23,8 @@ Session.prototype._init = function () {
|
|||
app.emit('session-created', this)
|
||||
}
|
||||
|
||||
Session.prototype.clearStorageData = deprecate.promisify(Session.prototype.clearStorageData)
|
||||
|
||||
Cookies.prototype.flushStore = deprecate.promisify(Cookies.prototype.flushStore)
|
||||
Cookies.prototype.get = deprecate.promisify(Cookies.prototype.get)
|
||||
Cookies.prototype.remove = deprecate.promisify(Cookies.prototype.remove)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue