mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
chore: fix LGTM
This commit is contained in:
parent
5cf579c37a
commit
b4ae9202ed
@ -129,8 +129,8 @@ export default ({
|
||||
: null,
|
||||
isZhCN &&
|
||||
typeof window !== 'undefined' &&
|
||||
!window.location.host.includes('ant-design.antgroup.com') &&
|
||||
!window.location.host.includes('ant-design.gitee.io')
|
||||
window.location.host !== 'ant-design.antgroup.com' &&
|
||||
window.location.host !== 'ant-design.gitee.io'
|
||||
? {
|
||||
label: '国内镜像',
|
||||
key: 'mirror',
|
||||
|
@ -121,7 +121,7 @@ class Header extends React.Component<HeaderProps, HeaderState> {
|
||||
});
|
||||
if (
|
||||
process.env.NODE_ENV === 'production' &&
|
||||
!window.location.host.includes('ant-design.antgroup.com') &&
|
||||
window.location.host !== 'ant-design.antgroup.com' &&
|
||||
shouldOpenAntdMirrorModal()
|
||||
) {
|
||||
Modal.confirm({
|
||||
|
Loading…
Reference in New Issue
Block a user