659e79fc08
* refactor: prevent consistent early exception * Use _linkedBinding where possible * Remove dead electronBinding
10 lines
351 B
TypeScript
10 lines
351 B
TypeScript
'use strict';
|
|
|
|
import { createLazyInstance } from '../utils';
|
|
const { EventEmitter } = require('events');
|
|
const { Screen, createScreen } = process._linkedBinding('electron_common_screen');
|
|
|
|
// Screen is an EventEmitter.
|
|
Object.setPrototypeOf(Screen.prototype, EventEmitter.prototype);
|
|
|
|
module.exports = createLazyInstance(createScreen, Screen, true);
|