mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
site: fix banner ssr
This commit is contained in:
parent
cbfa987b0b
commit
dd7410e151
@ -31,7 +31,7 @@ const promoteBannerImageUrl = 'https://gw.alipayobjects.com/zos/rmsportal/qVVhew
|
||||
class Home extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
const adBannerClosed = typeof window !== 'undefined' ? true : (
|
||||
const adBannerClosed = typeof window === 'undefined' ? true : (
|
||||
window.localStorage &&
|
||||
window.localStorage.getItem(`adBannerClosed-${promoteBannerImageUrl}`) === 'true'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user