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