fix new version Modal

This commit is contained in:
afc163 2016-05-22 14:30:22 +08:00
parent b06cdd08c3
commit a2736da2bd

View File

@ -28,8 +28,8 @@ export default class Footer extends React.Component {
//
// 1.
// 2.
if (localStorage.getItem('infoNewVersionSent') !== 'true' ||
new Date().getTime() > new Date('2016/05/22').getTime()) {
if (localStorage.getItem('infoNewVersionSent') !== 'true' &&
new Date().getTime() < new Date('2016/05/22').getTime()) {
this.infoNewVersion();
}
}