v2 up 9g0a903292kjl<f
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Dec 17 2018 15:37:27 GMT+0100 (CET)*/
|
/*Generated on:Mon Dec 17 2018 15:38:49 GMT+0100 (CET)*/
|
||||||
var AutomaticDispose_Branch = "master";
|
var AutomaticDispose_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
var da_lss_adis_time = new Date().getTime();
|
||||||
|
|||||||
Vendored
+19
-17
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Dec 17 2018 15:37:27 GMT+0100 (CET)*/
|
/*Generated on:Mon Dec 17 2018 15:38:49 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18517,24 +18517,26 @@ class AutomaticDispose {
|
|||||||
CollectMissions() {
|
CollectMissions() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
self.ADSettings().then((setting) => {
|
self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], async () => {
|
||||||
|
self.ADSettings().then((setting) => {
|
||||||
return self.ADisDB.ADisMissions.toCollection()
|
return self.ADisDB.ADisMissions.toCollection()
|
||||||
}).then((Missions) => {
|
}).then((Missions) => {
|
||||||
if (typeof Missions !== "undefined") {
|
if (typeof Missions !== "undefined") {
|
||||||
|
|
||||||
return Missions.count((count) => {
|
return Missions.count((count) => {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Missions.each((MyMission) => {
|
return Missions.each((MyMission) => {
|
||||||
var MissionElement = $("#mission_" + MyMission.missionID);
|
var MissionElement = $("#mission_" + MyMission.missionID);
|
||||||
if (MissionElement.length == 0 ){
|
if (MissionElement.length == 0) {
|
||||||
// remove
|
// remove
|
||||||
console.log("Remove :", MyMission)
|
console.log("Remove :", MyMission)
|
||||||
self.RemoveMissionsFromQueue(MyMission.missionID)
|
self.RemoveMissionsFromQueue(MyMission.missionID)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+18
-16
@@ -857,24 +857,26 @@ class AutomaticDispose {
|
|||||||
CollectMissions() {
|
CollectMissions() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
self.ADSettings().then((setting) => {
|
self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], async () => {
|
||||||
|
self.ADSettings().then((setting) => {
|
||||||
return self.ADisDB.ADisMissions.toCollection()
|
return self.ADisDB.ADisMissions.toCollection()
|
||||||
}).then((Missions) => {
|
}).then((Missions) => {
|
||||||
if (typeof Missions !== "undefined") {
|
if (typeof Missions !== "undefined") {
|
||||||
|
|
||||||
return Missions.count((count) => {
|
return Missions.count((count) => {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Missions.each((MyMission) => {
|
return Missions.each((MyMission) => {
|
||||||
var MissionElement = $("#mission_" + MyMission.missionID);
|
var MissionElement = $("#mission_" + MyMission.missionID);
|
||||||
if (MissionElement.length == 0 ){
|
if (MissionElement.length == 0) {
|
||||||
// remove
|
// remove
|
||||||
console.log("Remove :", MyMission)
|
console.log("Remove :", MyMission)
|
||||||
self.RemoveMissionsFromQueue(MyMission.missionID)
|
self.RemoveMissionsFromQueue(MyMission.missionID)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user