Destructure requires
This commit is contained in:
parent
48bcad87c2
commit
76f96bd99c
3 changed files with 3 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue