mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Multiple minor fixes
This commit is contained in:
@@ -9,6 +9,7 @@ const UNITS_URI = "units";
|
||||
const LOGS_URI = "logs";
|
||||
const AIRBASES_URI = "airbases";
|
||||
const BULLSEYE_URI = "bullseyes";
|
||||
const MISSION_URI = "mission";
|
||||
|
||||
var lastUpdateTime = 0;
|
||||
var demoEnabled = false;
|
||||
@@ -56,6 +57,10 @@ export function getLogs(callback: CallableFunction) {
|
||||
GET(callback, LOGS_URI);
|
||||
}
|
||||
|
||||
export function getMission(callback: CallableFunction) {
|
||||
GET(callback, MISSION_URI);
|
||||
}
|
||||
|
||||
export function getUnits(callback: CallableFunction, refresh: boolean = false) {
|
||||
GET(callback, `${UNITS_URI}?time=${refresh? 0: lastUpdateTime}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user