diff --git a/src/components/Dashboard/context/ElectronContext.jsx b/src/components/Dashboard/context/ElectronContext.jsx index a051590..c14ce19 100644 --- a/src/components/Dashboard/context/ElectronContext.jsx +++ b/src/components/Dashboard/context/ElectronContext.jsx @@ -132,6 +132,9 @@ const ElectronProvider = ({ children }) => { applyWindowState ) const unsubNavigate = desktopBridge.onMessage('navigate', (url) => { + if (url.toLowerCase() == '/favicon.ico') { + return + } console.log('[ElectronContext] Navigating to:', url) navigate(url) }) @@ -166,6 +169,10 @@ const ElectronProvider = ({ children }) => { ipcRenderer.on('window-state', windowStateHandler) const navigateHandler = (_event, url) => { + if (url.toLowerCase() == '/favicon.ico') { + return + } + console.log('[ElectronContext] Navigating to:', url) navigate(url) } ipcRenderer.on('navigate', navigateHandler)