fixed dumb errors

pull/2623/head
Le~Kat 2023-02-25 22:58:41 -05:00
parent 4ffaf9bb32
commit 635d8be507
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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);
});
});
}

View File

@ -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",