asarfuckery/electronasar/canary/browser/api/screen.js

11 lines
260 B
JavaScript
Raw Normal View History

2019-01-17 18:00:12 +00:00
'use strict'
const { EventEmitter } = require('events')
const { screen, Screen } = process.atomBinding('screen')
// Screen is an EventEmitter.
Object.setPrototypeOf(Screen.prototype, EventEmitter.prototype)
EventEmitter.call(screen)
module.exports = screen