Appease validation warning about "Unsafe assignment to innerHTML"

This doesn't apply to the webextension but hasn't been factored out in
the build step yet.
This commit is contained in:
Arlo Breault 2019-06-26 18:30:24 -04:00
parent ff6f91f3da
commit 055d5f1824
2 changed files with 8 additions and 2 deletions

View file

@ -37,7 +37,10 @@ class DebugUI extends UI
# Status bar
setStatus: (msg) ->
@$status.innerHTML = 'Status: ' + msg
txt = document.createTextNode('Status: ' + msg)
while @$status.firstChild
@$status.removeChild @$status.firstChild
@$status.appendChild txt
setActive: (connected) ->
super connected