1
0

switch over to mithril fragment method

This commit is contained in:
Adrian Wannenmacher 2026-02-22 12:51:44 +01:00
parent bb3ad61950
commit dbe20d548d
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
2 changed files with 3 additions and 3 deletions

View File

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

View File

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