mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix lint
This commit is contained in:
parent
d44a0ece3f
commit
0f6d1db614
@ -84,9 +84,9 @@ export default class Header extends React.Component {
|
||||
|
||||
handleLangChange = () => {
|
||||
const pathname = this.props.location.pathname;
|
||||
const currentProtocol = location.protocol + '//';
|
||||
const currentProtocol = `${location.protocol}//`;
|
||||
const currentHref = location.href.substr(currentProtocol.length);
|
||||
|
||||
|
||||
if (utils.isLocalStorageNameSupported()) {
|
||||
localStorage.setItem('locale', utils.isZhCN(pathname) ? 'en-US' : 'zh-CN');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user