fix: Incorrect warnings in webviews (#12234)

* 🔧 Get correct webContents

* 🔧 Err, webPreferences
This commit is contained in:
Felix Rieseberg 2018-03-12 18:55:32 -07:00 committed by Charles Kerr
parent dd2c2660b9
commit 71795ecc62

View file

@ -84,7 +84,7 @@ const getWebPreferences = function () {
}
const { remote } = require('electron')
webPreferences = remote.getCurrentWindow().webContents.getWebPreferences()
webPreferences = remote.getCurrentWebContents().getWebPreferences()
return webPreferences
} catch (error) {
return null