Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc authored Dec 17, 2024
1 parent 9e994a6 commit 3ec3f8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/scan/src/core/web/utils/outline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function incrementFrameId() {
requestAnimationFrame(incrementFrameId);
}

incrementFrameId();
if (typeof window !== "undefined") {
incrementFrameId();
}

interface CachedRect {
rect: DOMRect;
Expand Down

0 comments on commit 3ec3f8b

Please sign in to comment.