diff --git a/fluxer_app/src/utils/DeepLinkUtils.ts b/fluxer_app/src/utils/DeepLinkUtils.ts index 8b826b8f..83e3834f 100644 --- a/fluxer_app/src/utils/DeepLinkUtils.ts +++ b/fluxer_app/src/utils/DeepLinkUtils.ts @@ -146,13 +146,17 @@ export const startDeepLinkHandling = async (): Promise => { } }); - electronApi.onRpcNavigate((path) => { - try { - handleRpcNavigation(path); - } catch (error) { - console.error('[DeepLink] Failed to handle RPC navigation', path, error); - } - }); + if (typeof electronApi.onRpcNavigate === 'function') { + electronApi.onRpcNavigate((path) => { + try { + handleRpcNavigation(path); + } catch (error) { + console.error('[DeepLink] Failed to handle RPC navigation', path, error); + } + }); + } else { + console.warn('[DeepLink] onRpcNavigate not available on this host version'); + } return; }