pull/827/head
Adrian Batzill 2024-03-26 17:50:43 +00:00
rodzic a953276386
commit 0be177e621
2 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -45,9 +45,9 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
};
socket.onmessage = function (msg) {
if (($scope === undefined) || ($scope === null)) {
if ($scope === undefined || $scope === null) {
socket.close();
return;
return;
}
loadSituation(msg.data);
@ -67,7 +67,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
function sizeMap() {
var width = 0;
var div = document.getElementById("map_display");
if(div==null){
if (div==null) {
return width;
}
var el = div.parentElement;

Wyświetl plik

@ -211,8 +211,7 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval, craftService)
function getTowers() {
// Homepage status polling towers only if they are active
if($scope.visible_uat===undefined || $scope.visible_uat==false)
{
if ($scope.visible_uat===undefined || $scope.visible_uat==false) {
return;
}
// Simple GET request example (note: responce is asynchronous)