diff --git a/dist/autoloader.js b/dist/autoloader.js index 065fce8..bfe5a2b 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sun Dec 02 2018 10:13:26 GMT+0100 (CET)*/ +/*Generated on:Sun Dec 02 2018 10:17:13 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 d4d549d..5be2527 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Sun Dec 02 2018 10:13:26 GMT+0100 (CET)*/ +/*Generated on:Sun Dec 02 2018 10:17:13 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18171,7 +18171,7 @@ class AutomaticDispose { }) } - FreeIframe(Runner){ + FreeIframe(Runner) { const self = this; const runnerID = self.ADisSettings.runner.indexOf(Runner) const runnerIframe = self.ADisSettings.runner_iframes[runnerID]; @@ -18305,13 +18305,15 @@ class AutomaticDispose { return Wunsch.each((mywunsch) => { return self.MainHandler() }); + } else { + self.RemoveMissionsFromQueue(self.MissionID) + return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); } - self.RemoveMissionsFromQueue(self.MissionID) - return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }); + } else { + self.RemoveMissionsFromQueue(self.MissionID) + return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); } - self.RemoveMissionsFromQueue(self.MissionID) - return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }) }, 1500); } diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 3af40da..a3640be 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1001,7 +1001,7 @@ class AutomaticDispose { }) } - FreeIframe(Runner){ + FreeIframe(Runner) { const self = this; const runnerID = self.ADisSettings.runner.indexOf(Runner) const runnerIframe = self.ADisSettings.runner_iframes[runnerID]; @@ -1135,13 +1135,15 @@ class AutomaticDispose { return Wunsch.each((mywunsch) => { return self.MainHandler() }); + } else { + self.RemoveMissionsFromQueue(self.MissionID) + return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); } - self.RemoveMissionsFromQueue(self.MissionID) - return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }); + } else { + self.RemoveMissionsFromQueue(self.MissionID) + return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); } - self.RemoveMissionsFromQueue(self.MissionID) - return tellParent(`console.log('done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }) }, 1500); }