Skip to content

Commit 1d966f3

Browse files
move permutive js to the right place
1 parent 9ff6eff commit 1d966f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/js/lib/src/permutive/index.ts renamed to crates/js/lib/src/integrations/permutive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,6 @@ function waitForPermutiveSDK(callback: () => void, maxAttempts = 50) {
9595
check();
9696
}
9797

98-
// Wait for SDK to load, then install shim
99-
waitForPermutiveSDK(() => installPermutiveShim());
98+
if (typeof window !== 'undefined') {
99+
waitForPermutiveSDK(() => installPermutiveShim());
100+
}

0 commit comments

Comments
 (0)