mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-22 18:30:09 +00:00
Fix lint error: use arrow function for reloadApp
Co-authored-by: johannesjo <1456265+johannesjo@users.noreply.github.com>
This commit is contained in:
parent
ec5d9d0696
commit
5e3e51e240
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ import { IS_ELECTRON } from '../app.constants';
|
|||
* proper Electron IPC event when running in Electron, and falls back to
|
||||
* window.location.reload() in browser contexts.
|
||||
*/
|
||||
export function reloadApp(): void {
|
||||
export const reloadApp = (): void => {
|
||||
if (IS_ELECTRON && window.ea && typeof window.ea.reloadMainWin === 'function') {
|
||||
// Use Electron's proper reload method via IPC
|
||||
window.ea.reloadMainWin();
|
||||
|
|
@ -15,4 +15,4 @@ export function reloadApp(): void {
|
|||
// Fallback for browser/PWA context
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue