Guard for contentWindow == null (#930)

This commit is contained in:
Paulus Schoutsen
2018-02-26 11:44:15 -08:00
committed by GitHub
parent ff658c86ff
commit 9f3458fcd1
+1 -1
View File
@@ -54,7 +54,7 @@ class HaPanelHassio extends
}
_updateProperties(data) {
const setProperties = this.$.iframe.contentWindow.setProperties;
const setProperties = this.$.iframe.contentWindow && this.$.iframe.contentWindow.setProperties;
// Delay calling setProperties until iframe loaded
if (!setProperties) {