[client] Add debugging statement

This commit is contained in:
Starbeamrainbowlabs 2019-01-18 23:00:04 +00:00
parent cfc8d0feac
commit c581c5bbee
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 0 deletions

View File

@ -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 ];