diff --git a/dist/autoloader.js b/dist/autoloader.js index c8c70b1..02af0a6 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -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_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index dfc1e64..8f2d855 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -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 * =============================================== @@ -6893,14 +6893,11 @@ class AutomaticDispose { } ADSettings() { - let that = this; - return (async () => { - var res = {}; - await that.ADisDB.ADisSettings.each((setting) => { - res[setting.name] = setting.value; - }); - return res; - })() + var res = {}; + await this.ADisDB.ADisSettings.each((setting) => { + res[setting.name] = setting.value; + }); + return res; } get WindowName() { @@ -6953,7 +6950,7 @@ class AutomaticDispose { OpenNextRescueSprechwunsch() { let that = this; - this.ADSettings.then((setting) => { + this.ADSettings().then((setting) => { if (setting['Sprechwunsch-Automatic'] == 'true') { return that.ADisDB.ADisSprechwunsch.where({ done: 'false' @@ -7044,7 +7041,7 @@ class AutomaticDispose { OpenNextPoliceSprechwunsch() { let that = this; - this.ADSettings.then((setting) => { + this.ADSettings().then((setting) => { if (setting['Sprechwunsch-Automatic'] == 'true') { return that.ADisDB.ADisSprechwunschPolice.where({ done: 'false' diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 43afde7..bf1e4cf 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -135,14 +135,11 @@ class AutomaticDispose { } ADSettings() { - let that = this; - return (async () => { - var res = {}; - await that.ADisDB.ADisSettings.each((setting) => { - res[setting.name] = setting.value; - }); - return res; - })() + var res = {}; + await this.ADisDB.ADisSettings.each((setting) => { + res[setting.name] = setting.value; + }); + return res; } get WindowName() { @@ -195,7 +192,7 @@ class AutomaticDispose { OpenNextRescueSprechwunsch() { let that = this; - this.ADSettings.then((setting) => { + this.ADSettings().then((setting) => { if (setting['Sprechwunsch-Automatic'] == 'true') { return that.ADisDB.ADisSprechwunsch.where({ done: 'false' @@ -286,7 +283,7 @@ class AutomaticDispose { OpenNextPoliceSprechwunsch() { let that = this; - this.ADSettings.then((setting) => { + this.ADSettings().then((setting) => { if (setting['Sprechwunsch-Automatic'] == 'true') { return that.ADisDB.ADisSprechwunschPolice.where({ done: 'false'