fix(app): silence fixed errors from outdated electron clients (#13)

This commit is contained in:
hampus-fluxer 2026-01-03 17:54:15 +01:00 committed by GitHub
parent edb36f406d
commit 1b1f593506
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,13 +146,17 @@ export const startDeepLinkHandling = async (): Promise<void> => {
} }
}); });
electronApi.onRpcNavigate((path) => { if (typeof electronApi.onRpcNavigate === 'function') {
try { electronApi.onRpcNavigate((path) => {
handleRpcNavigation(path); try {
} catch (error) { handleRpcNavigation(path);
console.error('[DeepLink] Failed to handle RPC navigation', path, error); } catch (error) {
} console.error('[DeepLink] Failed to handle RPC navigation', path, error);
}); }
});
} else {
console.warn('[DeepLink] onRpcNavigate not available on this host version');
}
return; return;
} }