Skip to content

Commit

Permalink
chore: fix LGTM
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 11, 2022
1 parent 5cf579c commit b4ae920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/theme/template/Layout/Header/Navigation.tsx
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion site/theme/template/Layout/Header/index.tsx
Expand Up @@ -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({
Expand Down

0 comments on commit b4ae920

Please sign in to comment.