mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
feat: promisify webContents.hasServiceWorker() (#16535)
* feat: promisify contents.hasServiceWorker() * spec: add initial test for hasServiceWorker()
This commit is contained in:
@@ -375,6 +375,7 @@ WebContents.prototype._init = function () {
|
||||
this.setMaxListeners(0)
|
||||
|
||||
this.capturePage = deprecate.promisify(this.capturePage)
|
||||
this.hasServiceWorker = deprecate.promisify(this.hasServiceWorker)
|
||||
|
||||
// Dispatch IPC messages to the ipc module.
|
||||
this.on('-ipc-message', function (event, internal, channel, args) {
|
||||
|
||||
Reference in New Issue
Block a user