Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

398 B
Raw Blame
import { hasShellEntered } from "./shell-entered";
import { ShellFrame } from "./shell-frame";

function isShellPath(pathname: string) {
  const path = pathname.replace(/\/+$/, "");
  return path === "/dashboard" || path.startsWith("/dashboard/workspace/");
}

export function BootFrame() {
  if (hasShellEntered() || !isShellPath(window.location.pathname)) return null;
  return <ShellFrame />;
}