diff --git a/js/public/app.js b/js/public/app.js index 40733a2..9b93932 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -167,6 +167,12 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil } } } + + // If no home found, load first city found + if ($scope.cities.length > 0) { + $scope.loadCity($scope.cities[0]); + } + }, function (r) { $scope.fatalError();