From 394c5a3e4d8bc70340b4a6af4c09cfbfe0f86605 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 18 May 2016 17:27:46 -0700 Subject: [PATCH] fix(config): id was only added recently, use getId() --- src/browser/config-persistence-manager.es6 | 2 +- src/config.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/config-persistence-manager.es6 b/src/browser/config-persistence-manager.es6 index 41abb29eb..b57b71ac9 100644 --- a/src/browser/config-persistence-manager.es6 +++ b/src/browser/config-persistence-manager.es6 @@ -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); } }); diff --git a/src/config.coffee b/src/config.coffee index afefaa89a..a57e60754 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -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