mirror of
https://github.com/element-hq/element-desktop.git
synced 2025-12-23 23:59:16 -05:00
Fix lint
This commit is contained in:
@@ -505,8 +505,8 @@ app.on("ready", async () => {
|
||||
|
||||
global.mainWindow.webContents.on("before-input-event", (event: Event, input: Input): void => {
|
||||
const exitShortcutPressed =
|
||||
input.type === "keyDown" && exitShortcuts.some((shortcutFn) => shortcutFn(input, process.platform));
|
||||
|
||||
input.type === "keyDown" && exitShortcuts.some((shortcutFn) => shortcutFn(input, process.platform));
|
||||
|
||||
// We only care about the exit shortcuts here
|
||||
if (!exitShortcutPressed || !global.mainWindow) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user