mirror of
https://github.com/electron/electron.git
synced 2026-02-05 20:55:16 -05:00
14 lines
330 B
JavaScript
14 lines
330 B
JavaScript
const electron = require('electron');
|
|
|
|
const { View } = electron;
|
|
const { ImageView } = process.electronBinding('image_view');
|
|
|
|
Object.setPrototypeOf(ImageView.prototype, View.prototype);
|
|
|
|
ImageView.prototype._init = function () {
|
|
// Call parent class's _init.
|
|
View.prototype._init.call(this);
|
|
};
|
|
|
|
module.exports = ImageView;
|