diff --git a/app/lib/app.ts b/app/lib/app.ts index 9de60e42..1144dce2 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -169,7 +169,7 @@ export class Application { broadcastExcept (event: string, except: WebContents, ...args: any[]): void { for (const window of this.windows) { - if (window.webContents.id === except.id) { + if (window.webContents.id !== except.id) { window.send(event, ...args) } } diff --git a/tabby-core/src/services/config.service.ts b/tabby-core/src/services/config.service.ts index b68e17f7..c1e6c360 100644 --- a/tabby-core/src/services/config.service.ts +++ b/tabby-core/src/services/config.service.ts @@ -9,6 +9,7 @@ import { ConfigProvider } from '../api/configProvider' import { PlatformService } from '../api/platform' import { HostAppService } from '../api/hostApp' import { Vault, VaultService } from './vault.service' +import { serializeFunction } from '../utils' const deepmerge = require('deepmerge') // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types @@ -146,6 +147,7 @@ export class ConfigService { this.store.vault = vault.store this.save() }) + this.save = serializeFunction(this.save.bind(this)) } mergeDefaults (): unknown {