electron/lib/renderer/api/web-frame.js
2016-08-02 21:02:28 +09:00

12 lines
329 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)
// Lots of webview would subscribe to webFrame's events.
webFrame.setMaxListeners(0)
module.exports = webFrame