Implemented tailLog into FTL API

This commit is contained in:
DL6ER
2017-02-23 15:03:53 +01:00
parent a6a4c944b0
commit 874ec8c9db
2 changed files with 27 additions and 2 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ var interval = 200;
// Function that asks the API for new data
function reloadData(){
clearTimeout(timer);
$.getJSON("api_PHP.php?tailLog="+offset, function (data)
$.getJSON("api.php?tailLog="+offset, function (data)
{
offset = data["offset"];
pre.append(data["lines"]);
@@ -27,7 +27,7 @@ function reloadData(){
$(function(){
// Get offset at first loading of page
$.getJSON("api_PHP.php?tailLog", function (data)
$.getJSON("api.php?tailLog", function (data)
{
offset = data["offset"];
});