forked from XimeX/usrspace-browser-addon
small fix
This commit is contained in:
parent
213f4138ff
commit
d123a42167
|
@ -52,7 +52,7 @@ const fetchNewData = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
fetchSpaceApi().then((json) => {
|
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)
|
sendNotification(json.state.open)
|
||||||
}
|
}
|
||||||
window.spaceApi = json;
|
window.spaceApi = json;
|
||||||
|
|
Loading…
Reference in New Issue