fixed require(electron)

This commit is contained in:
antelle 2019-01-07 22:04:39 +01:00
parent af26c7d1ee
commit 0c7210b177
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ function hookRequestHeaders() {
// partially off-screen or straddling two displays if the user desires that.
function coerceMainWindowPositionToConnectedDisplay() {
const eScreen = require('electron').screen;
const eScreen = electron.screen;
const displays = eScreen.getAllDisplays();
if (!displays || !displays.length) return;
const windowBounds = mainWindow.getBounds();