mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(config): id was only added recently, use getId()
This commit is contained in:
parent
6dbf4ad51a
commit
394c5a3e4d
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue