mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Adding timeout for usual get-requests when not authenticated with a token
This commit is contained in:
@@ -283,7 +283,10 @@ var Frontpage = {
|
||||
Frontpage.frontpage_function();
|
||||
/*Helper.ajax({
|
||||
url: add + "/api/frontpages",
|
||||
method: "get",
|
||||
method: "POST",
|
||||
data: {
|
||||
token: zoff_api_token,
|
||||
},
|
||||
success: function(response){
|
||||
response = JSON.parse(response);
|
||||
Frontpage.frontpage_function(response.results);
|
||||
|
||||
Reference in New Issue
Block a user