* :wrench: Get correct webContents * :wrench: Err, webPreferences
@@ -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