v2 up 0af9au

This commit is contained in:
2018-12-01 14:13:08 +01:00
parent 1117060571
commit b7e7543711
3 changed files with 22 additions and 14 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Sat Dec 01 2018 13:06:33 GMT+0100 (CET)*/
/*Generated on:Sat Dec 01 2018 14:13:08 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();
+10 -6
View File
@@ -1,4 +1,4 @@
/*Generated on:Sat Dec 01 2018 13:06:33 GMT+0100 (CET)*/
/*Generated on:Sat Dec 01 2018 14:13:08 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -17009,6 +17009,8 @@ class AutomaticDispose {
});
this.ADisDB.on("ready", () => {
setInterval(self.genSettings.bind(self),1000);
if (window.location.pathname === "/" || window.location.pathname === "/#") {
self.GetAvailableMissions()
self.IndexPage()
@@ -17055,14 +17057,16 @@ class AutomaticDispose {
return string1.toLowerCase().includes(string2.toLowerCase());
}
genSettings() {
self.ADisDB.ADisSettings.each((setting) => {
self.adis_settings[setting.name] = setting.value;
});
}
ADSettings() {
let self = this;
return new Promise(async (resolve, reject) => {
let res = {};
await self.ADisDB.ADisSettings.each((setting) => {
res[setting.name] = setting.value;
});
resolve(res);
return resolve(self.adis_settings);
})
}
+9 -5
View File
@@ -116,6 +116,8 @@ class AutomaticDispose {
});
this.ADisDB.on("ready", () => {
setInterval(self.genSettings.bind(self),1000);
if (window.location.pathname === "/" || window.location.pathname === "/#") {
self.GetAvailableMissions()
self.IndexPage()
@@ -162,14 +164,16 @@ class AutomaticDispose {
return string1.toLowerCase().includes(string2.toLowerCase());
}
genSettings() {
self.ADisDB.ADisSettings.each((setting) => {
self.adis_settings[setting.name] = setting.value;
});
}
ADSettings() {
let self = this;
return new Promise(async (resolve, reject) => {
let res = {};
await self.ADisDB.ADisSettings.each((setting) => {
res[setting.name] = setting.value;
});
resolve(res);
return resolve(self.adis_settings);
})
}