mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
'use strict'
|
|
|
|
const {EventEmitter} = require('events')
|
|
const {webFrame, WebFrame} = process.atomBinding('web_frame')
|
|
|
|
// WebFrame is an EventEmitter.
|
|
Object.setPrototypeOf(WebFrame.prototype, EventEmitter.prototype)
|
|
EventEmitter.call(webFrame)
|
|
|
|
// Lots of webview would subscribe to webFrame's events.
|
|
webFrame.setMaxListeners(0)
|
|
|
|
module.exports = webFrame
|