diff --git a/dist/autoloader.js b/dist/autoloader.js index 9c6b0cb..585bb3c 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sun Dec 02 2018 09:49:44 GMT+0100 (CET)*/ +/*Generated on:Sun Dec 02 2018 09:52:21 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index 1388583..4eaa413 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Sun Dec 02 2018 09:49:44 GMT+0100 (CET)*/ +/*Generated on:Sun Dec 02 2018 09:52:21 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -16957,9 +16957,9 @@ class AutomaticDispose { let self = this; self.MissionType = null - self.MissionID= null - self.MyRunner= null - self.MyRunnerSettings= null + self.MissionID = null + self.MyRunner = null + self.MyRunnerSettings = null self._ADisVehiclesNeed = {} self.MissionConfig = {} @@ -18255,7 +18255,7 @@ class AutomaticDispose { // - // - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - + StartMission() { const self = this; self.MissionType = null; @@ -18276,7 +18276,7 @@ class AutomaticDispose { } console.log("MissionID", self.MissionID); console.log("MissionType", self.MissionType); - self.ADisSettings().then((setting) => { + self.ADSettings().then((setting) => { if (setting[runnerSettings] != 'true') { return self.ADisDB.ADisMissionsOwn.where({ missionID: self.MissionID, @@ -18332,7 +18332,7 @@ class AutomaticDispose { WorkVerbandMission() { const self = this; - self.ADisSettings().then((setting) => { + self.ADSettings().then((setting) => { var title = document.getElementById('missionH1'); var isVerband = title.innerText.toLowerCase().includes("[verband]"); if (setting['Alliance-Automatic'] == 'true' && isVerband) { @@ -18393,13 +18393,11 @@ class AutomaticDispose { var missionLoad; if (window.name == 'adis-ownmissions') { setOpt = 'MissionsOwn-Automatic'; - missionLoad = 'ADisMissionsOwn'; } else if (window.name == 'adis-krankentransporte') { setOpt = 'Krankentransport-Automatic'; - missionLoad = 'ADisKrankentransport'; } if (setOpt && missionLoad) { - self.ADisSettings().then((setting) => { + self.ADSettings().then((setting) => { if (setting[setOpt] == 'true') { var coll = self.ADisDB.ADisMissions.where({ done: 'false' @@ -18420,7 +18418,7 @@ class AutomaticDispose { } } - + GetMissionConfiguration(MissionType) { const self = this; @@ -18443,7 +18441,7 @@ class AutomaticDispose { }); } - + StartAlarmProcess() { const self = this; diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 98f42ec..08f8295 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -21,9 +21,9 @@ class AutomaticDispose { let self = this; self.MissionType = null - self.MissionID= null - self.MyRunner= null - self.MyRunnerSettings= null + self.MissionID = null + self.MyRunner = null + self.MyRunnerSettings = null self._ADisVehiclesNeed = {} self.MissionConfig = {} @@ -1085,7 +1085,7 @@ class AutomaticDispose { // - // - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - + StartMission() { const self = this; self.MissionType = null; @@ -1106,7 +1106,7 @@ class AutomaticDispose { } console.log("MissionID", self.MissionID); console.log("MissionType", self.MissionType); - self.ADisSettings().then((setting) => { + self.ADSettings().then((setting) => { if (setting[runnerSettings] != 'true') { return self.ADisDB.ADisMissionsOwn.where({ missionID: self.MissionID, @@ -1162,7 +1162,7 @@ class AutomaticDispose { WorkVerbandMission() { const self = this; - self.ADisSettings().then((setting) => { + self.ADSettings().then((setting) => { var title = document.getElementById('missionH1'); var isVerband = title.innerText.toLowerCase().includes("[verband]"); if (setting['Alliance-Automatic'] == 'true' && isVerband) { @@ -1223,13 +1223,11 @@ class AutomaticDispose { var missionLoad; if (window.name == 'adis-ownmissions') { setOpt = 'MissionsOwn-Automatic'; - missionLoad = 'ADisMissionsOwn'; } else if (window.name == 'adis-krankentransporte') { setOpt = 'Krankentransport-Automatic'; - missionLoad = 'ADisKrankentransport'; } if (setOpt && missionLoad) { - self.ADisSettings().then((setting) => { + self.ADSettings().then((setting) => { if (setting[setOpt] == 'true') { var coll = self.ADisDB.ADisMissions.where({ done: 'false' @@ -1250,7 +1248,7 @@ class AutomaticDispose { } } - + GetMissionConfiguration(MissionType) { const self = this; @@ -1273,7 +1271,7 @@ class AutomaticDispose { }); } - + StartAlarmProcess() { const self = this;