2020-03-20 20:28:31 +00:00
|
|
|
'use strict';
|
2018-05-24 08:11:08 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const electron = require('electron');
|
2018-05-24 08:11:08 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const { Button } = electron;
|
|
|
|
const { LabelButton } = process.electronBinding('label_button');
|
2018-05-24 08:11:08 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
Object.setPrototypeOf(LabelButton.prototype, Button.prototype);
|
2018-05-24 08:11:08 +00:00
|
|
|
|
|
|
|
LabelButton.prototype._init = function () {
|
|
|
|
// Call parent class's _init.
|
2020-03-20 20:28:31 +00:00
|
|
|
Button.prototype._init.call(this);
|
|
|
|
};
|
2018-05-24 08:11:08 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
module.exports = LabelButton;
|