mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-23 15:57:06 +00:00
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
This commit is contained in:
parent
c82f8addbf
commit
0c67b4a3ed
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue