From dbe20d548db1c4e8ee550f70f79d775e6c98f769 Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Sun, 22 Feb 2026 12:51:44 +0100 Subject: [PATCH] switch over to mithril fragment method --- ui/app.js | 4 ++-- ui/game.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app.js b/ui/app.js index 340f47b..51f7fa9 100644 --- a/ui/app.js +++ b/ui/app.js @@ -20,13 +20,13 @@ export default class App { let db = WbDb.get(); if (db.failed) - return m("[", [ + return m.fragment([ m("h1", "Watterblock kann nicht geöffnet werden"), m("p", "Die IndexedDB-Verbindung funktioniert gerade nicht"), ]); if (db.blocked) - return m("[", [ + return m.fragment([ m("h1", "Watterblock muss warten"), m("p", "Bitte schließe alle anderen Tabs, in denen der Watterblock " + diff --git a/ui/game.js b/ui/game.js index 5a3a221..fe97b3e 100644 --- a/ui/game.js +++ b/ui/game.js @@ -8,7 +8,7 @@ export default class GameView { view({ attrs: { model } }) { let { ourPoints, theirPoints } = model.result; - return m("[", [ + return m.fragment([ (model.rounds.length !== 0) ? m("tbody", model.rounds.map(function(round) { return m("tr", [