15 lines
		
	
	
	
		
			329 B
			
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			329 B
			
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
const electron = require('electron');
 | 
						|
 | 
						|
const { View } = electron;
 | 
						|
const { Button } = process.electronBinding('button');
 | 
						|
 | 
						|
Object.setPrototypeOf(Button.prototype, View.prototype);
 | 
						|
 | 
						|
Button.prototype._init = function () {
 | 
						|
  // Call parent class's _init.
 | 
						|
  View.prototype._init.call(this);
 | 
						|
};
 | 
						|
 | 
						|
module.exports = Button;
 |