Live video on the AT Protocol

Restrict returnRoute handling to web

+5 -1
+1
js/app/components/login/login.tsx
··· 27 27 28 28 // check for stored return route on mount 29 29 useEffect(() => { 30 + if (Platform.OS !== "web") return; 30 31 storage.getItem("returnRoute").then((stored) => { 31 32 if (stored) { 32 33 try {
+4 -1
js/app/features/bluesky/blueskyProvider.tsx
··· 2 2 import { storage } from "@streamplace/components"; 3 3 import { useURL } from "expo-linking"; 4 4 import { useEffect, useState } from "react"; 5 + import { Platform } from "react-native"; 5 6 import { useStore } from "store"; 6 7 import { useIsReady, useOAuthSession, useUserProfile } from "store/hooks"; 7 8 import { navigateToRoute } from "utils/navigation"; ··· 23 24 loadOAuthClient(); 24 25 25 26 // load return route from storage on mount 27 + if (Platform.OS !== "web") return; 26 28 storage.getItem("returnRoute").then((stored) => { 27 29 if (stored) { 28 30 try { ··· 82 84 if ( 83 85 lastAuthStatus !== "loggedIn" && 84 86 authStatus === "loggedIn" && 85 - returnRoute 87 + returnRoute && 88 + Platform.OS === "web" 86 89 ) { 87 90 console.log( 88 91 "Login successful, navigating back to returnRoute:",