asarfuckery/electronasar/canary/browser/api/web-contents-view.js
2019-02-06 21:27:58 +01:00

15 lines
364 B
JavaScript

'use strict'
const electron = require('electron')
const { View } = electron
const { WebContentsView } = process.atomBinding('web_contents_view')
Object.setPrototypeOf(WebContentsView.prototype, View.prototype)
WebContentsView.prototype._init = function () {
// Call parent class's _init.
View.prototype._init.call(this)
}
module.exports = WebContentsView