From 4ffaf9bb3237db00e982269b2a26e51a072a4398 Mon Sep 17 00:00:00 2001 From: Le~Kat Date: Sat, 25 Feb 2023 22:50:34 -0500 Subject: [PATCH] forgot to resolve the promise --- apps/multidice/ChangeLog | 1 + apps/multidice/app.js | 3 ++- apps/multidice/metadata.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/multidice/ChangeLog b/apps/multidice/ChangeLog index 72ff0367f..9f1d05d5e 100644 --- a/apps/multidice/ChangeLog +++ b/apps/multidice/ChangeLog @@ -22,3 +22,4 @@ 1.20: removed all traces of accel b/c I've given up 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 diff --git a/apps/multidice/app.js b/apps/multidice/app.js index 5f8e8712d..892e88d41 100644 --- a/apps/multidice/app.js +++ b/apps/multidice/app.js @@ -100,9 +100,10 @@ function mutex (functionRef) { lock = true; return new Promise (() => { - functionRef.then (() => { + functionRef.then ((result) => { lock = false; + resolve (result); }); }); } diff --git a/apps/multidice/metadata.json b/apps/multidice/metadata.json index acbca320b..5ca785724 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.22", + "version":"1.23", "description": "roll anywhere from 1-8 dice at the same time", "icon": "app.png", "tags": "tool,game",