Destructure requires

This commit is contained in:
Kevin Sawicki 2016-11-03 10:51:13 -07:00
parent 48bcad87c2
commit 76f96bd99c
3 changed files with 3 additions and 6 deletions

View file

@ -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.

View file

@ -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')

View file

@ -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')