small fix

This commit is contained in:
Thomas Rupprecht 2018-12-27 20:36:43 +01:00
parent 213f4138ff
commit d123a42167
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ const fetchNewData = () => {
});
fetchSpaceApi().then((json) => {
if (window.spaceApi.state.open !== json.state.open) {
if (window.spaceApi && window.spaceApi.state.open !== json.state.open) {
sendNotification(json.state.open)
}
window.spaceApi = json;