From 1b1f5935064a22e72d736af0b5e251f98e605715 Mon Sep 17 00:00:00 2001 From: hampus-fluxer Date: Sat, 3 Jan 2026 17:54:15 +0100 Subject: [PATCH] fix(app): silence fixed errors from outdated electron clients (#13) --- fluxer_app/src/utils/DeepLinkUtils.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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; }