Handle no .imageFeed present

pull/3825/merge
Isaac Connor 2024-11-25 12:39:14 -05:00
parent 3125dbbfc6
commit 0128cd1e57
1 changed files with 4 additions and 2 deletions

View File

@ -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) {