diff --git a/dist/autoloader.js b/dist/autoloader.js index 663447f..491f6e8 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Tue Dec 18 2018 01:57:56 GMT+0100 (CET)*/ +/*Generated on:Tue Dec 18 2018 02:02:15 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 03eeee3..f43ce2f 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Tue Dec 18 2018 01:57:56 GMT+0100 (CET)*/ +/*Generated on:Tue Dec 18 2018 02:02:15 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18454,14 +18454,13 @@ class AutomaticDispose { MainHandler() { const self = this; if (self.MissionType == null || self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { - console.log("DONE!"); - console.log("DONE: ", self.MissionID); + tellParent(`console.info("DONE: ${self.MissionID}");`); return self.RemoveMissionsFromQueue(self.MissionID).then(() => { return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed }) } else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") ) { - console.log("SEND"); - console.log("SEND: ", self.MissionID); + const m = $('#iframe-inside-container > div.alert.fade.in.alert-success').text() + tellParent(`console.info("SEND: ${self.MissionID}", ${m});`); return self.UpdateMissionsToDone(self.MissionID).then(() => { return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full }); diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 089a6a2..b89f7fe 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1213,14 +1213,13 @@ class AutomaticDispose { MainHandler() { const self = this; if (self.MissionType == null || self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { - console.log("DONE!"); - console.log("DONE: ", self.MissionID); + tellParent(`console.info("DONE: ${self.MissionID}");`); return self.RemoveMissionsFromQueue(self.MissionID).then(() => { return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed }) } else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") ) { - console.log("SEND"); - console.log("SEND: ", self.MissionID); + const m = $('#iframe-inside-container > div.alert.fade.in.alert-success').text() + tellParent(`console.info("SEND: ${self.MissionID}", ${m});`); return self.UpdateMissionsToDone(self.MissionID).then(() => { return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full });