Handle no .imageFeed present
parent
3125dbbfc6
commit
0128cd1e57
|
@ -818,8 +818,10 @@ function streamPrepareStart(monitor=null) {
|
|||
});
|
||||
|
||||
const el = document.querySelector('.imageFeed');
|
||||
el.addEventListener('mouseenter', handleMouseEnter);
|
||||
el.addEventListener('mouseleave', handleMouseLeave);
|
||||
if (el) {
|
||||
el.addEventListener('mouseenter', handleMouseEnter);
|
||||
el.addEventListener('mouseleave', handleMouseLeave);
|
||||
}
|
||||
|
||||
const i = setInterval(function() {
|
||||
if (document.querySelector('[id ^= "liveStream"]').offsetHeight > 20) {
|
||||
|
|
Loading…
Reference in New Issue