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'
|
'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.
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue