Ye
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 54s

This commit is contained in:
2026-10-12 01:05:46 +02:00
parent f3bf48ae54
commit 50828af674
7 changed files with 103 additions and 20 deletions

View File

@@ -8,10 +8,13 @@ const container = ref(null);
const resultText = ref("");
const rollDice = () => {
console.log(props.content);
const result = parse(props.content);
console.log(result);
resultText.value = result.total;
try {
const result = parse(props.content);
resultText.value = result.total;
} catch (err) {
// Expressio de daus malformada: no fem petar el widget, nomes ho registrem.
console.error('Invalid roll expression', props.content, err);
}
};
onMounted(() => {