Skip to content
Snippets Groups Projects

[Fix] fix roomstate.js incompatibility with spaceapi v14

Merged Dario requested to merge spaceapi-endpoint into main
1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
@@ -44,10 +44,6 @@ function updateRoomState(openState, lastChangeTimestamp) {
function parseResponse(apiJson) {
console.debug('SpaceAPI got:', apiJson)
if (typeof apiJson.api === "undefined") {
console.error("SpaceAPI JSON invalid: 'api' item not present")
return [null, null]
}
if (typeof apiJson.state === "undefined") {
console.error("SpaceAPI JSON invalid: 'state' item not present")
return [null, null]
Loading