using unicode instead of innerHTML hook

pull/5433/head
Niklas Fiekas 2019-08-16 14:16:25 +02:00
parent 33ab7fd2fe
commit 1d6bb5ead4
1 changed files with 1 additions and 7 deletions

View File

@ -41,13 +41,7 @@ export default function(ctrl: LobbyController) {
h('span.indicator',
pov.isMyTurn ?
(pov.secondsLeft ? timer(pov) : [ctrl.trans.noarg('yourTurn')]) :
h('span', {
hook: {
insert(vnode) {
(vnode.elm as HTMLElement).innerHTML = ' ';
}
}
}))
h('span', '\xa0')) //  
])
]);
}));