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 c7066fc commit f387ccaCopy full SHA for f387cca
dist/util/getScrollbarWidth.js
@@ -8,7 +8,7 @@ exports.dbgSetScrollbarWidth = dbgSetScrollbarWidth;
8
exports.dbgSetDocument = dbgSetDocument;
9
exports.dbgGetDocument = dbgGetDocument;
10
var scrollbarWidth = null;
11
-var doc = document;
+var doc = typeof document !== "undefined" ? document : null;
12
/**
13
* @description Returns scrollbar width specific for current environment
14
* @return {number}
src/util/getScrollbarWidth.js
@@ -1,5 +1,5 @@
1
let scrollbarWidth = null;
2
-let doc = document;
+let doc = typeof document !== "undefined" ? document : null;
3
4
5
0 commit comments