v2 up 930ua8a8gh0

This commit is contained in:
2018-11-29 10:32:59 +01:00
parent 4eccf75c31
commit f47fc82491
3 changed files with 42 additions and 2 deletions

22
dist/autoloaderV2.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Thu Nov 29 2018 10:28:11 GMT+0100 (CET)*/
/*Generated on:Thu Nov 29 2018 10:32:58 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -4585,6 +4585,7 @@ class AutomaticDispose {
this.ADisDB.on("ready", () => {
if (window.location.pathname === "/" || window.location.pathname === "/#") {
that.GetAvailableMissions()
that.IndexPage()
setInterval(that.CollectRescueSprechwuensche.bind(that), 2500);
setInterval(that.OpenNextRescueSprechwunsch.bind(that), 5000);
@@ -5510,6 +5511,25 @@ class AutomaticDispose {
}
});
}
GetAvailableMissions() {
let self = this;
for (let i in self.ADisSettings.all_missions) {
Mission = self.ADisSettings.all_missions[i];
self.AddAvailableMissions(Mission);
}
}
AddAvailableMissions(Mission) {
return this.ADisDB.ADisAvailabelMissions.put({
missionID: Mission.id,
type: Mission.type,
name: Mission.name,
jsondata: Mission
}).catch((err) => {
console.error(err)
})
}
}