v2 update

This commit is contained in:
2018-11-28 20:13:23 +01:00
parent d18218a1ab
commit fcc1f7276d
3 changed files with 16 additions and 22 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Wed Nov 28 2018 20:10:52 GMT+0100 (CET)*/ /*Generated on:Wed Nov 28 2018 20:13:23 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();
+8 -11
View File
@@ -1,4 +1,4 @@
/*Generated on:Wed Nov 28 2018 20:10:52 GMT+0100 (CET)*/ /*Generated on:Wed Nov 28 2018 20:13:23 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -6893,14 +6893,11 @@ class AutomaticDispose {
} }
ADSettings() { ADSettings() {
let that = this; var res = {};
return (async () => { await this.ADisDB.ADisSettings.each((setting) => {
var res = {}; res[setting.name] = setting.value;
await that.ADisDB.ADisSettings.each((setting) => { });
res[setting.name] = setting.value; return res;
});
return res;
})()
} }
get WindowName() { get WindowName() {
@@ -6953,7 +6950,7 @@ class AutomaticDispose {
OpenNextRescueSprechwunsch() { OpenNextRescueSprechwunsch() {
let that = this; let that = this;
this.ADSettings.then((setting) => { this.ADSettings().then((setting) => {
if (setting['Sprechwunsch-Automatic'] == 'true') { if (setting['Sprechwunsch-Automatic'] == 'true') {
return that.ADisDB.ADisSprechwunsch.where({ return that.ADisDB.ADisSprechwunsch.where({
done: 'false' done: 'false'
@@ -7044,7 +7041,7 @@ class AutomaticDispose {
OpenNextPoliceSprechwunsch() { OpenNextPoliceSprechwunsch() {
let that = this; let that = this;
this.ADSettings.then((setting) => { this.ADSettings().then((setting) => {
if (setting['Sprechwunsch-Automatic'] == 'true') { if (setting['Sprechwunsch-Automatic'] == 'true') {
return that.ADisDB.ADisSprechwunschPolice.where({ return that.ADisDB.ADisSprechwunschPolice.where({
done: 'false' done: 'false'
+7 -10
View File
@@ -135,14 +135,11 @@ class AutomaticDispose {
} }
ADSettings() { ADSettings() {
let that = this; var res = {};
return (async () => { await this.ADisDB.ADisSettings.each((setting) => {
var res = {}; res[setting.name] = setting.value;
await that.ADisDB.ADisSettings.each((setting) => { });
res[setting.name] = setting.value; return res;
});
return res;
})()
} }
get WindowName() { get WindowName() {
@@ -195,7 +192,7 @@ class AutomaticDispose {
OpenNextRescueSprechwunsch() { OpenNextRescueSprechwunsch() {
let that = this; let that = this;
this.ADSettings.then((setting) => { this.ADSettings().then((setting) => {
if (setting['Sprechwunsch-Automatic'] == 'true') { if (setting['Sprechwunsch-Automatic'] == 'true') {
return that.ADisDB.ADisSprechwunsch.where({ return that.ADisDB.ADisSprechwunsch.where({
done: 'false' done: 'false'
@@ -286,7 +283,7 @@ class AutomaticDispose {
OpenNextPoliceSprechwunsch() { OpenNextPoliceSprechwunsch() {
let that = this; let that = this;
this.ADSettings.then((setting) => { this.ADSettings().then((setting) => {
if (setting['Sprechwunsch-Automatic'] == 'true') { if (setting['Sprechwunsch-Automatic'] == 'true') {
return that.ADisDB.ADisSprechwunschPolice.where({ return that.ADisDB.ADisSprechwunschPolice.where({
done: 'false' done: 'false'