implements timed clearing of dice
This commit is contained in:
@@ -73,6 +73,10 @@
|
||||
themeColor: data.themeColor,
|
||||
results: rollResult,
|
||||
} ))
|
||||
if ({clearAfter} > 0) {
|
||||
setTimeout(() => diceBox.clear(), {clearAfter} * 1000)
|
||||
}
|
||||
|
||||
}
|
||||
diceBox.roll(data.roll, { theme: data.theme?.length > 0 ? data.theme : 'default', themeColor: data.themeColor.length > 0 ? data.themeColor : '#4545FF' });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user