fix(config): id was only added recently, use getId()

This commit is contained in:
Ben Gotow 2016-05-18 17:27:46 -07:00
parent 6dbf4ad51a
commit 394c5a3e4d
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ export default class ConfigPersistenceManager {
global.application.config.updateSettings(this.settings);
BrowserWindow.getAllWindows().forEach((win) => {
if ((win.webContents) && (win.webContents.id !== sourceWebcontentsId)) {
if ((win.webContents) && (win.webContents.getId() !== sourceWebcontentsId)) {
win.webContents.send('on-config-reloaded', this.settings);
}
});

View file

@ -9,7 +9,7 @@ Color = require './color'
if process.type is 'renderer'
app = remote.getGlobal('application')
webContentsId = remote.getCurrentWebContents().id
webContentsId = remote.getCurrentWebContents().getId()
else
app = global.application
webContentsId = null