v2 up 09ai9g0a9ugji

This commit is contained in:
2018-12-17 15:36:15 +01:00
parent 9d3dd45181
commit 8224bd00f3
3 changed files with 44 additions and 2 deletions

View File

@@ -856,6 +856,27 @@ class AutomaticDispose {
CollectMissions() {
const self = this;
self.ADSettings().then((setting) => {
return self.ADisDB.ADisMissions.toCollection()
}).then((Missions) => {
if (typeof Missions !== "undefined") {
return Missions.count((count) => {
if (count > 0) {
return Missions.each((MyMission) => {
var MissionElement = $("#mission_" + MyMission.missionID);
if (MissionElement.length == 0 ){
//
self.RemoveMissionsFromQueue(MyMission.missionID)
}
});
}
});
}
});
const MyOwnObserver = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
// console.log(mutation.target.id);