diff --git a/apps/multidice/ChangeLog b/apps/multidice/ChangeLog index 9f1d05d5e..08981ebfc 100644 --- a/apps/multidice/ChangeLog +++ b/apps/multidice/ChangeLog @@ -23,3 +23,4 @@ 1.21: added a drawWidgets command to see if I have the padding right 1.22: ok the buzzing *might* work now 1.23: forgot to resolve the promise +1.24: fixed dumb errors diff --git a/apps/multidice/app.js b/apps/multidice/app.js index 892e88d41..03380ee39 100644 --- a/apps/multidice/app.js +++ b/apps/multidice/app.js @@ -98,12 +98,16 @@ function mutex (functionRef) { } lock = true; - return new Promise (() => { + return new Promise ((resolve, reject) => { - functionRef.then ((result) => { + functionRef().then ((result) => { lock = false; resolve (result); + }).catch ((error) => { + + lock = false; + reject (error); }); }); } diff --git a/apps/multidice/metadata.json b/apps/multidice/metadata.json index 5ca785724..999446eac 100644 --- a/apps/multidice/metadata.json +++ b/apps/multidice/metadata.json @@ -1,7 +1,7 @@ { "id": "multidice", "name": "multiple dice roller", "shortName":"multidice", - "version":"1.23", + "version":"1.24", "description": "roll anywhere from 1-8 dice at the same time", "icon": "app.png", "tags": "tool,game",