We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06f6e6 commit 9ea7230Copy full SHA for 9ea7230
src/utils/sets.ts
@@ -1,4 +1,4 @@
1
-if (!('WeakSet' in window)) {
+if (typeof window !== 'undefined' && !('WeakSet' in window)) {
2
// simple polyfil for IE
3
Object.defineProperty(window, 'WeakSet', {
4
value: new (class {
0 commit comments