diff --git a/dist/autoloader.js b/dist/autoloader.js index 585bb3c..1aebcf4 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sun Dec 02 2018 09:52:21 GMT+0100 (CET)*/ +/*Generated on:Sun Dec 02 2018 09:56:36 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 4eaa413..4537065 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Sun Dec 02 2018 09:52:21 GMT+0100 (CET)*/ +/*Generated on:Sun Dec 02 2018 09:56:36 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18277,7 +18277,7 @@ class AutomaticDispose { console.log("MissionID", self.MissionID); console.log("MissionType", self.MissionType); self.ADSettings().then((setting) => { - if (setting[runnerSettings] != 'true') { + if (setting[self.MyRunnerSettings] != 'true') { return self.ADisDB.ADisMissionsOwn.where({ missionID: self.MissionID, runner: MyRunner, @@ -18390,19 +18390,18 @@ class AutomaticDispose { CheckMissionAutomatic() { const self = this; var setOpt; - var missionLoad; if (window.name == 'adis-ownmissions') { setOpt = 'MissionsOwn-Automatic'; } else if (window.name == 'adis-krankentransporte') { setOpt = 'Krankentransport-Automatic'; } - if (setOpt && missionLoad) { + if (setOpt && self.MyRunner) { self.ADSettings().then((setting) => { if (setting[setOpt] == 'true') { var coll = self.ADisDB.ADisMissions.where({ done: 'false' }) - if (missionLoad != "ADisKrankentransport") { + if (self.MyRunner != "kt") { coll = coll.and(function (item) { return item.next_check <= Math.floor(new Date().getTime() / 1000) }); @@ -18412,7 +18411,7 @@ class AutomaticDispose { }).then((Missions) => { if (Missions.length > 0) { var Mission = Missions[0]; - self.GetMissionConfiguration(missionLoad == 'ADisKrankentransport' ? 147 : Mission.type); + self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type); } }); } diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 08f8295..5b1ead9 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1107,7 +1107,7 @@ class AutomaticDispose { console.log("MissionID", self.MissionID); console.log("MissionType", self.MissionType); self.ADSettings().then((setting) => { - if (setting[runnerSettings] != 'true') { + if (setting[self.MyRunnerSettings] != 'true') { return self.ADisDB.ADisMissionsOwn.where({ missionID: self.MissionID, runner: MyRunner, @@ -1220,19 +1220,18 @@ class AutomaticDispose { CheckMissionAutomatic() { const self = this; var setOpt; - var missionLoad; if (window.name == 'adis-ownmissions') { setOpt = 'MissionsOwn-Automatic'; } else if (window.name == 'adis-krankentransporte') { setOpt = 'Krankentransport-Automatic'; } - if (setOpt && missionLoad) { + if (setOpt && self.MyRunner) { self.ADSettings().then((setting) => { if (setting[setOpt] == 'true') { var coll = self.ADisDB.ADisMissions.where({ done: 'false' }) - if (missionLoad != "ADisKrankentransport") { + if (self.MyRunner != "kt") { coll = coll.and(function (item) { return item.next_check <= Math.floor(new Date().getTime() / 1000) }); @@ -1242,7 +1241,7 @@ class AutomaticDispose { }).then((Missions) => { if (Missions.length > 0) { var Mission = Missions[0]; - self.GetMissionConfiguration(missionLoad == 'ADisKrankentransport' ? 147 : Mission.type); + self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type); } }); }