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) => {
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user