Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

387 B
Raw Blame
import { isAlwaysWorkbenchSpaRoute, isWorkbenchSpaRoute } from './workbenchRoutes';

export const shouldHardNavigateToWorkbench = (pathname: string): boolean => {
  if (typeof __ELECTRON__ !== 'undefined' && __ELECTRON__) return false;
  if (isAlwaysWorkbenchSpaRoute(pathname)) return true;

  return typeof __MOBILE__ !== 'undefined' && __MOBILE__ && isWorkbenchSpaRoute(pathname);
};