Make full path check before using google.visualization (#716)

* Make full path check before using visualization

* Missing check
This commit is contained in:
Andrey 2017-12-06 08:54:53 +02:00 committed by Paulus Schoutsen
parent 9ae2325834
commit 9b3448d44c

View File

@ -144,7 +144,7 @@
this.nowCond = _WEATHER_TO_ICON[this.stateObj.state]; this.nowCond = _WEATHER_TO_ICON[this.stateObj.state];
this.windBearing = this.windBearingToText(this.attr.wind_bearing); this.windBearing = this.windBearingToText(this.attr.wind_bearing);
if (!window.google) { if (!window.google || !window.google.visualization) {
return; return;
} }