chore: fix LGTM

This commit is contained in:
afc163 2022-05-11 13:44:19 +08:00
parent 5cf579c37a
commit b4ae9202ed
2 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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({