From 0c67b4a3ed7e625595ce1f128ee23519feef512a Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 28 Mar 2024 12:23:04 +0000 Subject: [PATCH] Remove browser feature checks IntersectionObserver is provided by polyfill in core, and CSS.escape was a proxy for ES6 support, which is also now assumed by core. Change-Id: I739287182b7debbd2c538b79175b3cdc2a1da5ea --- resources/ext.relatedArticles.readMore.bootstrap/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/ext.relatedArticles.readMore.bootstrap/index.js b/resources/ext.relatedArticles.readMore.bootstrap/index.js index 85bef227..0c380e78 100644 --- a/resources/ext.relatedArticles.readMore.bootstrap/index.js +++ b/resources/ext.relatedArticles.readMore.bootstrap/index.js @@ -5,10 +5,9 @@ * @ignore */ function loadRelatedArticles() { - const readMore = document.querySelector( '.read-more-container' ), - isSupported = 'IntersectionObserver' in window && CSS.escape !== undefined; + const readMore = document.querySelector( '.read-more-container' ); - if ( !readMore || !isSupported ) { + if ( !readMore ) { // The container is not in the HTML for some reason and cannot be queried. // See T281547 return;