frontend/public: don't require etag header
This commit is contained in:
parent
ff98bfa79f
commit
fb89ca5938
@ -125,7 +125,7 @@ angular.module("FICApp")
|
|||||||
.controller("DataController", function($scope, $http, $rootScope, $interval) {
|
.controller("DataController", function($scope, $http, $rootScope, $interval) {
|
||||||
var refreshScene = function() {
|
var refreshScene = function() {
|
||||||
$http.get(window.location.pathname.replace(".html", ".json")).then(function(response) {
|
$http.get(window.location.pathname.replace(".html", ".json")).then(function(response) {
|
||||||
if ($scope.lastpublicetag == response.headers().etag)
|
if ($scope.lastpublicsetag != undefined && $scope.lastpublicsetag == response.headers().etag)
|
||||||
return;
|
return;
|
||||||
$scope.lastpublicetag = response.headers().etag;
|
$scope.lastpublicetag = response.headers().etag;
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ angular.module("FICApp")
|
|||||||
}
|
}
|
||||||
var refreshData = function() {
|
var refreshData = function() {
|
||||||
$http.get("/my.json").then(function(response) {
|
$http.get("/my.json").then(function(response) {
|
||||||
if ($scope.lastmyetag == response.headers().etag)
|
if ($scope.lastmyetag != undefined && $scope.lastmyetag == response.headers().etag)
|
||||||
return;
|
return;
|
||||||
$scope.lastmyetag = response.headers().etag;
|
$scope.lastmyetag = response.headers().etag;
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ angular.module("FICApp")
|
|||||||
$scope.settings = response.data;
|
$scope.settings = response.data;
|
||||||
});
|
});
|
||||||
$http.get("/themes.json").then(function(response) {
|
$http.get("/themes.json").then(function(response) {
|
||||||
if ($scope.lastthemeetag == response.headers().etag)
|
if ($scope.lastthemeetag != undefined && $scope.lastthemeetag == response.headers().etag)
|
||||||
return;
|
return;
|
||||||
$scope.lastthemeetag = response.headers().etag;
|
$scope.lastthemeetag = response.headers().etag;
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ angular.module("FICApp")
|
|||||||
}, themes);
|
}, themes);
|
||||||
});
|
});
|
||||||
$http.get("/teams.json").then(function(response) {
|
$http.get("/teams.json").then(function(response) {
|
||||||
if ($scope.lastteametag == response.headers().etag)
|
if ($scope.lastteametag != undefined && $scope.lastteametag == response.headers().etag)
|
||||||
return;
|
return;
|
||||||
$scope.lastteametag = response.headers().etag;
|
$scope.lastteametag = response.headers().etag;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user