Slot support also when there is no status

This commit is contained in:
Henri Bergius 2017-11-30 23:17:40 +01:00
parent b5052c4e43
commit 93bf9ea347

View file

@ -58,6 +58,7 @@ class CurrentState extends Component {
el.style.height = '100%'; el.style.height = '100%';
if (!statusknown) { if (!statusknown) {
el.style.backgroundColor = '#555753'; el.style.backgroundColor = '#555753';
el.innerHTML = '<slot></slot>';
return el; return el;
} }
if (status) { if (status) {