A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): silence fixed errors from outdated electron clients (#13)
hampus-fluxer1b1f5935064a
diff --git a/fluxer_app/src/utils/DeepLinkUtils.ts b/fluxer_app/src/utils/DeepLinkUtils.tsindex 8b826b8f7..83e3834fd 100644--- a/fluxer_app/src/utils/DeepLinkUtils.ts+++ b/fluxer_app/src/utils/DeepLinkUtils.ts@@ -146,13 +146,17 @@ export const startDeepLinkHandling = async (): Promise<void> => {}});- 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;}