electron/lib/browser/api/screen.ts
2020-03-20 13:28:31 -07:00

10 lines
336 B
TypeScript

'use strict';
import { createLazyInstance } from '../utils';
const { EventEmitter } = require('events');
const { Screen, createScreen } = process.electronBinding('screen');
// Screen is an EventEmitter.
Object.setPrototypeOf(Screen.prototype, EventEmitter.prototype);
module.exports = createLazyInstance(createScreen, Screen, true);