Embed: don't attempt to remove error element if it is not shown
This commit is contained in:
parent
d944d4600e
commit
e5c1c6f8c4
1 changed files with 1 additions and 1 deletions
|
@ -915,7 +915,7 @@ function mistPlay(streamName,options) {
|
|||
button.appendChild(t);
|
||||
err.appendChild(button);
|
||||
button.onclick = function(){
|
||||
options.target.removeChild(err);
|
||||
if (err.parentElement) { err.parentElement.removeChild(err); }
|
||||
delete options.startCombo;
|
||||
if (err.timeOut) {
|
||||
clearTimeout(err.timeOut);
|
||||
|
|
Loading…
Add table
Reference in a new issue