diff --git a/lib/browser/guest-view-manager.js b/lib/browser/guest-view-manager.js index a1ed7b940886..639353609517 100644 --- a/lib/browser/guest-view-manager.js +++ b/lib/browser/guest-view-manager.js @@ -1,7 +1,6 @@ 'use strict' -const ipcMain = require('electron').ipcMain -const webContents = require('electron').webContents +const {ipcMain, webContents} = require('electron') const parseFeaturesString = require('../common/parse-features-string') // Doesn't exist in early initialization. diff --git a/lib/renderer/web-view/web-view-attributes.js b/lib/renderer/web-view/web-view-attributes.js index fdd76c85721d..e495667e30f8 100644 --- a/lib/renderer/web-view/web-view-attributes.js +++ b/lib/renderer/web-view/web-view-attributes.js @@ -3,7 +3,7 @@ const WebViewImpl = require('./web-view') const guestViewInternal = require('./guest-view-internal') const webViewConstants = require('./web-view-constants') -const remote = require('electron').remote +const {remote} = require('electron') // Helper function to resolve url set in attribute. const a = document.createElement('a') diff --git a/lib/renderer/web-view/web-view.js b/lib/renderer/web-view/web-view.js index 03b44e12e49d..70b5a88f01c1 100644 --- a/lib/renderer/web-view/web-view.js +++ b/lib/renderer/web-view/web-view.js @@ -1,8 +1,6 @@ 'use strict' -const webFrame = require('electron').webFrame -const remote = require('electron').remote -const ipcRenderer = require('electron').ipcRenderer +const {ipcRenderer, remote, webFrame} = require('electron') const v8Util = process.atomBinding('v8_util') const guestViewInternal = require('./guest-view-internal')