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 bc77870 commit 4d6469bCopy full SHA for 4d6469b
src/ElementQueries.js
@@ -13,7 +13,7 @@
13
root.ElementQueries = factory(root.ResizeSensor);
14
root.ElementQueries.listen();
15
}
16
-}(this, function (ResizeSensor) {
+}(typeof window !== 'undefined' ? window : this, function (ResizeSensor) {
17
18
/**
19
*
src/ResizeSensor.js
@@ -12,7 +12,7 @@
12
} else {
root.ResizeSensor = factory();
-}(this, function () {
+}(typeof window !== 'undefined' ? window : this, function () {
// Make sure it does not throw in a SSR (Server Side Rendering) situation
if (typeof window === "undefined") {
0 commit comments