mirror of
https://github.com/owntracks/recorder.git
synced 2026-03-31 23:56:51 +00:00
http: table: fix dataURI (I don't think this'll be the last time..)
This commit is contained in:
@@ -72,8 +72,18 @@
|
||||
|
||||
|
||||
function getuserlist() {
|
||||
var dataURI = location.protocol + "//" + location.host;
|
||||
|
||||
var parts = location.pathname.split('/');
|
||||
for (var i = 1; i < parts.length - 2; i++) {
|
||||
dataURI = dataURI + "/" + parts[i];
|
||||
}
|
||||
dataURI = dataURI + "/api/0/last" + location.search;
|
||||
|
||||
console.log("dataURI = " + dataURI);
|
||||
|
||||
$.ajax({
|
||||
url: "http://127.0.0.1:8084/api/0/last", // "getlast.php",
|
||||
url: dataURI,
|
||||
type: "GET",
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
|
||||
Reference in New Issue
Block a user