mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +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);
|
global.application.config.updateSettings(this.settings);
|
||||||
|
|
||||||
BrowserWindow.getAllWindows().forEach((win) => {
|
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);
|
win.webContents.send('on-config-reloaded', this.settings);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,7 +9,7 @@ Color = require './color'
|
||||||
|
|
||||||
if process.type is 'renderer'
|
if process.type is 'renderer'
|
||||||
app = remote.getGlobal('application')
|
app = remote.getGlobal('application')
|
||||||
webContentsId = remote.getCurrentWebContents().id
|
webContentsId = remote.getCurrentWebContents().getId()
|
||||||
else
|
else
|
||||||
app = global.application
|
app = global.application
|
||||||
webContentsId = null
|
webContentsId = null
|
||||||
|
|
Loading…
Reference in a new issue