asarfuckery/electronasar/canary/browser/api/web-contents-view.js

16 lines
364 B
JavaScript
Raw Normal View History

2019-05-18 17:55:03 +00:00
'use strict'
const electron = require('electron')
const { View } = electron
const { WebContentsView } = process.atomBinding('web_contents_view')
Object.setPrototypeOf(WebContentsView.prototype, View.prototype)
2019-02-06 20:27:58 +00:00
WebContentsView.prototype._init = function () {
2019-05-18 17:55:03 +00:00
// Call parent class's _init.
View.prototype._init.call(this)
}
module.exports = WebContentsView