diff --git a/src/js/popup.js b/src/js/popup.js index 3a9346a..b4d8e3f 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -77,6 +77,11 @@ const resizePopup = (( ) => { // The purpose of `xobserver` is to initiate the resize handler only // when the popup panel is actually visible. + + // https://github.com/uBlockOrigin/uMatrix-issues/issues/235 + if ( self.IntersectionObserver instanceof Object === false ) { + return ( ) => { }; + } let xobserver = new IntersectionObserver(intersections => { if ( intersections.length === 0 ) { return; } if ( intersections[0].isIntersecting === false ) { return; }