Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
fix: Cannot read property 'getPrimaryDisplay' of undefined (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
demopark authored Oct 12, 2020
1 parent 3947219 commit 0418726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion renderer-process/media/desktop-capturer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const {desktopCapturer, screen, shell} = require('electron')
const {desktopCapturer, shell} = require('electron')
const {screen} = require('electron').remote

const fs = require('fs')
const os = require('os')
Expand Down
2 changes: 1 addition & 1 deletion renderer-process/system/screen-information.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {screen} = require('electron')
const {screen} = require('electron').remote

const screenInfoBtn = document.getElementById('screen-info')
const size = screen.getPrimaryDisplay().size
Expand Down

0 comments on commit 0418726

Please sign in to comment.