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' 'use strict'
const ipcMain = require('electron').ipcMain const {ipcMain, webContents} = require('electron')
const webContents = require('electron').webContents
const parseFeaturesString = require('../common/parse-features-string') const parseFeaturesString = require('../common/parse-features-string')
// Doesn't exist in early initialization. // Doesn't exist in early initialization.

View file

@ -3,7 +3,7 @@
const WebViewImpl = require('./web-view') const WebViewImpl = require('./web-view')
const guestViewInternal = require('./guest-view-internal') const guestViewInternal = require('./guest-view-internal')
const webViewConstants = require('./web-view-constants') const webViewConstants = require('./web-view-constants')
const remote = require('electron').remote const {remote} = require('electron')
// Helper function to resolve url set in attribute. // Helper function to resolve url set in attribute.
const a = document.createElement('a') const a = document.createElement('a')

View file

@ -1,8 +1,6 @@
'use strict' 'use strict'
const webFrame = require('electron').webFrame const {ipcRenderer, remote, webFrame} = require('electron')
const remote = require('electron').remote
const ipcRenderer = require('electron').ipcRenderer
const v8Util = process.atomBinding('v8_util') const v8Util = process.atomBinding('v8_util')
const guestViewInternal = require('./guest-view-internal') const guestViewInternal = require('./guest-view-internal')