fix(app): silence fixed errors from outdated electron clients (#13)
This commit is contained in:
parent
edb36f406d
commit
1b1f593506
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user