We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e96f2b + 54929ab commit 2522fecCopy full SHA for 2522fec
src/utils.js
@@ -16,7 +16,7 @@ export const events = {
16
};
17
18
export const vendorPrefix = (function () {
19
- if (typeof window === 'undefined') return ''; // server environment
+ if (typeof window === 'undefined' || typeof document === 'undefined') return ''; // server environment
20
let styles = window.getComputedStyle(document.documentElement, '');
21
let pre = (Array.prototype.slice
22
.call(styles)
0 commit comments