mirror of
https://github.com/bitwarden/directory-connector
synced 2026-01-06 02:23:35 +00:00
[deps]: Update electron to v34 (#713)
* [deps]: Update electron to v34 * fix: remove event parameter from minimize handler for Electron 34 compatibility The minimize event in Electron 34 no longer provides an event object, requiring removal of the e.preventDefault() call. * feat(deps): add node-abi@3.74.0 as devDependency for Electron 34 rebuild Required for electron-rebuild to work correctly with Electron 34. Previous transitive dependency version (3.68.0) was too old to support Electron 34. * Bump Electron to v34.1.1 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Rui Tome <rtome@bitwarden.com>
This commit is contained in:
@@ -60,9 +60,8 @@ export class TrayMain {
|
||||
}
|
||||
|
||||
setupWindowListeners(win: BrowserWindow) {
|
||||
win.on("minimize", async (e: Event) => {
|
||||
win.on("minimize", async () => {
|
||||
if (await this.stateService.getEnableMinimizeToTray()) {
|
||||
e.preventDefault();
|
||||
this.hideToTray();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user