openhands / src /mocks /should-start-mock-worker.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
5f40163 verified
Raw History Blame Contribute Delete
239 Bytes
export function shouldStartMockWorker({
mockApi = import.meta.env.VITE_MOCK_API,
hasWindow = typeof window !== "undefined",
}: {
mockApi?: string;
hasWindow?: boolean;
} = {}): boolean {
return hasWindow && mockApi === "true";
}