switch over to mithril fragment method
This commit is contained in:
parent
bb3ad61950
commit
dbe20d548d
@ -20,13 +20,13 @@ export default class App {
|
|||||||
let db = WbDb.get();
|
let db = WbDb.get();
|
||||||
|
|
||||||
if (db.failed)
|
if (db.failed)
|
||||||
return m("[", [
|
return m.fragment([
|
||||||
m("h1", "Watterblock kann nicht geöffnet werden"),
|
m("h1", "Watterblock kann nicht geöffnet werden"),
|
||||||
m("p", "Die IndexedDB-Verbindung funktioniert gerade nicht"),
|
m("p", "Die IndexedDB-Verbindung funktioniert gerade nicht"),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (db.blocked)
|
if (db.blocked)
|
||||||
return m("[", [
|
return m.fragment([
|
||||||
m("h1", "Watterblock muss warten"),
|
m("h1", "Watterblock muss warten"),
|
||||||
m("p",
|
m("p",
|
||||||
"Bitte schließe alle anderen Tabs, in denen der Watterblock " +
|
"Bitte schließe alle anderen Tabs, in denen der Watterblock " +
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export default class GameView {
|
|||||||
view({ attrs: { model } }) {
|
view({ attrs: { model } }) {
|
||||||
let { ourPoints, theirPoints } = model.result;
|
let { ourPoints, theirPoints } = model.result;
|
||||||
|
|
||||||
return m("[", [
|
return m.fragment([
|
||||||
(model.rounds.length !== 0)
|
(model.rounds.length !== 0)
|
||||||
? m("tbody", model.rounds.map(function(round) {
|
? m("tbody", model.rounds.map(function(round) {
|
||||||
return m("tr", [
|
return m("tr", [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user