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