Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alepouna authored Apr 3, 2024
1 parent 906c338 commit d88424d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,18 @@ function initializeApp() {
installExtension(REDUX_DEVTOOLS)
.then((name) => console.log(`Added Extension: ${name}`))
.catch((err) => console.log('An error occurred: ', err));
};
}

//Register keybinds
mainWindow.webContents.on('before-input-event', (event, input) => {
// Check if the input event is for window reloading
// Check if the input event is for window reloading
if (input.type === 'keyUp' && (input.key.toLowerCase() === 'r' || input.key === 'F5') && (input.control || input.meta)) {

Check failure on line 220 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `input.type·===·'keyUp'·&&·(input.key.toLowerCase()·===·'r'·||·input.key·===·'F5')·&&·(input.control·||·input.meta)` with `⏎········input.type·===·'keyUp'·&&⏎········(input.key.toLowerCase()·===·'r'·||·input.key·===·'F5')·&&⏎········(input.control·||·input.meta)⏎······`
mainWindow.isFocused() && mainWindow.reload()
mainWindow.isFocused() && mainWindow.reload();
}

// Check if the input even is for dev tools
// Check if the input even is for dev tools
if (input.type === 'keyUp' && input.key === 'F12' && (input.control || input.meta)) {
mainWindow.isFocused() && mainWindow.webContents.toggleDevTools()
mainWindow.isFocused() && mainWindow.webContents.toggleDevTools();
}
});
});
Expand Down

0 comments on commit d88424d

Please sign in to comment.