Workaround for bug in Safari
This commit is contained in:
1 parent
146a5583db
commit
97967dc1ed
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ class StateSwitch extends LitElement {
|
||||
}
|
||||
if(config.entity === 'mediaquery') {
|
||||
for(const q in this.cards) {
|
||||
window.matchMedia(q).addEventListener("change", this.update_state.bind(this));
|
||||
window.matchMedia(q).addListener(this.update_state.bind(this));
|
||||
}
|
||||
}
|
||||
if(config.entity === 'template') {
|
||||
|
||||
Reference in new issue
Block a user