v2 update maog9vcj

This commit is contained in:
2018-12-17 20:46:51 +01:00
parent 59b95b1807
commit 17c33e5bb3
3 changed files with 48 additions and 2 deletions

25
dist/autoloaderV2.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 20:13:22 GMT+0100 (CET)*/
/*Generated on:Mon Dec 17 2018 20:46:50 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -18516,6 +18516,29 @@ class AutomaticDispose {
CollectMissions() {
const self = this;
self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], async () => {
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 || $('#mission_panel_' + MyMission.missionID).hasClass('mission_panel_green')) {
// remove
console.log("Remove :", MyMission)
self.RemoveMissionsFromQueue(MyMission.missionID)
}
});
}
});
}
});
});
const MyOwnObserver = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
// console.log(mutation.target.id);