Add logging for navigation events in ElectronContext
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Introduced a console log statement to track navigation events within the ElectronContext component.
- This enhancement aids in debugging and monitoring navigation actions triggered by the desktop bridge.
This commit is contained in:
Tom Butcher 2026-08-02 20:20:14 +01:00
parent 9ef02304fe
commit 76ec8389c2

View File

@ -131,6 +131,7 @@ const ElectronProvider = ({ children }) => {
applyWindowState
)
const unsubNavigate = desktopBridge.onMessage('navigate', (url) => {
console.log('[ElectronContext] Navigating to:', url)
navigate(url)
})
const unsubNavigationGesture = desktopBridge.onMessage(