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