site: fix link

This commit is contained in:
afc163 2017-02-23 00:35:16 +08:00
parent 27717483a7
commit 5fbc007ff7

View File

@ -21,7 +21,7 @@ export default class Article extends React.Component {
// eslint-disable-next-line
const checkImgUrl = 'https://g-assets.daily.taob' + 'ao.net/seajs/seajs/2.2.0/sea.js';
this.pingTimer = utils.ping(checkImgUrl, (status) => {
if (status !== 'timeout') {
if (status !== 'timeout' && status !== 'error') {
links.forEach(link => (link.style.display = 'block'));
} else {
links.forEach(link => link.parentNode.removeChild(link));