Fix indentation in readme

This commit is contained in:
thomas committed 2019-12-10 22:33:19 +01:00
1 parent 3d88f953d3
commit fddaed38c3
3 files changed
+100 -106

No files matched your search

-4
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;
}
}