mirror of https://github.com/espruino/BangleApps
fixed dumb errors
parent
4ffaf9bb32
commit
635d8be507
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue