Fix indentation in readme

This commit is contained in:
2019-12-10 21:45:02 +01:00
parent 3d88f953d3
commit fddaed38c3
3 changed files with 100 additions and 106 deletions

View File

@@ -27,7 +27,6 @@ class StateSwitch extends LitElement {
}
if(config.entity === 'mediaquery') {
for(const q in this.cards) {
console.log("Register " + q);
window.matchMedia(q).addEventListener("change", this.update_state.bind(this));
}
}
@@ -50,11 +49,8 @@ class StateSwitch extends LitElement {
break;
case "mediaquery":
for(const q in this.cards) {
console.log("Check " + q);
console.log(window.matchMedia(q));
if(window.matchMedia(q).matches) {
newstate = q;
console.log(newstate);
break;
}
}