remove setTimeout
This commit is contained in:
2
dist/autoloader.js
vendored
2
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Tue Dec 18 2018 02:02:15 GMT+0100 (CET)*/
|
||||
/*Generated on:Tue Dec 18 2018 02:03:09 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();
|
||||
|
||||
16
dist/autoloaderV2.js
vendored
16
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Tue Dec 18 2018 02:02:15 GMT+0100 (CET)*/
|
||||
/*Generated on:Tue Dec 18 2018 02:03:09 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -18465,14 +18465,12 @@ class AutomaticDispose {
|
||||
return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
});
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
self.CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
}
|
||||
}.bind(self), 250);
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
self.CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1224,14 +1224,12 @@ class AutomaticDispose {
|
||||
return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
});
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
self.CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
}
|
||||
}.bind(self), 250);
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
self.CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user