13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
'use strict'
|
|
|
|
const EventEmitter = require('events').EventEmitter
|
|
|
|
const webFrame = process.atomBinding('web_frame').webFrame
|
|
|
|
// webFrame is an EventEmitter.
|
|
Object.setPrototypeOf(webFrame, EventEmitter.prototype)
|
|
|
|
// Lots of webview would subscribe to webFrame's events.
|
|
webFrame.setMaxListeners(0)
|
|
|
|
module.exports = webFrame
|