Skip to content

Commit

Permalink
fix(Cypress-SignalR-Mock): Fixed incorrect check
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLandbridge committed May 19, 2023
1 parent 4e7fd2f commit 0b40a6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ export function getHubConnectionMock(
}

export function isSSR(): boolean {
if (typeof window !== "undefined") {
if (typeof window === "undefined") {
Log.error(
"window is not defined. This most likely happens during SSR, which is not supported,"
"window is not defined. This most likely happens during SSR, which is not supported",
false
);
return true;
}
Expand Down

0 comments on commit 0b40a6c

Please sign in to comment.