fix: add platform abstraction for deeplink

This was crashing App.tsx due to the deep link listener calling methods on window which do not exist.
This commit is contained in:
Arjun Patel
2026-06-09 09:34:13 -07:00
parent a94a986fbf
commit 198add3931
5 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -56,10 +56,10 @@ function DeepLinkNavigationListener() {
const navigate = useNavigate();
useEffect(() => {
window.electronDeepLink.getPending().then((path) => {
platform.deepLink.getPending().then((path) => {
if (path) navigate(path);
});
return window.electronDeepLink.onNavigate((path) => navigate(path));
return platform.deepLink.onNavigate((path) => navigate(path));
}, [navigate]);
return null;