2020-03-20 20:28:31 +00:00
|
|
|
'use strict';
|
2019-04-30 00:46:08 +00:00
|
|
|
|
2020-07-13 16:58:49 +00:00
|
|
|
import { createLazyInstance } from '@electron/internal/browser/utils';
|
2020-03-20 20:28:31 +00:00
|
|
|
const { EventEmitter } = require('events');
|
2020-06-23 03:32:45 +00:00
|
|
|
const { Screen, createScreen } = process._linkedBinding('electron_common_screen');
|
2019-04-30 00:46:08 +00:00
|
|
|
|
|
|
|
// Screen is an EventEmitter.
|
2020-03-20 20:28:31 +00:00
|
|
|
Object.setPrototypeOf(Screen.prototype, EventEmitter.prototype);
|
2019-04-30 00:46:08 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
module.exports = createLazyInstance(createScreen, Screen, true);
|