From 5e3e51e240a6ee7fb8171d1a51c14cd9c3733b31 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Oct 2025 11:38:30 +0000 Subject: [PATCH] Fix lint error: use arrow function for reloadApp Co-authored-by: johannesjo <1456265+johannesjo@users.noreply.github.com> --- src/app/util/reload-app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/util/reload-app.ts b/src/app/util/reload-app.ts index 44b541aa5..06be6ceba 100644 --- a/src/app/util/reload-app.ts +++ b/src/app/util/reload-app.ts @@ -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(); } -} +};