Fixed ping and comment #3587

This commit is contained in:
Nicolas Gotchac
2016-11-23 18:08:53 +01:00
parent ab212fcdb5
commit bb6fe16478
4 changed files with 21 additions and 14 deletions

View File

@@ -102,7 +102,7 @@ export default class Status {
}, timeout);
};
fetch('/api/ping', { method: 'HEAD' })
fetch('/', { method: 'HEAD' })
.then((response) => dispatch(!!response.ok))
.catch(() => dispatch(false));
}