mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25:01 +00:00
[client] Add debugging statement
This commit is contained in:
parent
cfc8d0feac
commit
c581c5bbee
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ class LayerDeviceMarkers {
|
|||
if(typeof device_id !== "number")
|
||||
throw new Exception("Error: Invalid device id passed.");
|
||||
|
||||
console.info("Fetching device info for device", device_id);
|
||||
let device_info = JSON.parse(await GetFromUrl(`${Config.api_root}?action=device-info&device-id=${device_id}`));
|
||||
|
||||
device_info.location = [ device_info.latitude, device_info.longitude ];
|
||||
|
|
Loading…
Reference in a new issue