Browse Source

fix next.js serverless error (#18541)

https://github.com/zeit/next.js/issues/8151
pull/18544/head
Tay Zheng Yu 5 years ago
committed by 偏右
parent
commit
414de6b5c9
  1. 2
      components/_util/styleChecker.tsx

2
components/_util/styleChecker.tsx

@ -1,4 +1,4 @@
function isStyleSupport(styleName: string | Array<string>): boolean {
const isStyleSupport = (styleName: string | Array<string>): boolean => {
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
const styleNameList = Array.isArray(styleName) ? styleName : [styleName];
const { documentElement } = window.document;

Loading…
Cancel
Save