Remove error popping up on nytimes.com (#1079)

This commit is contained in:
Calvin Wu 2020-12-13 20:12:18 -05:00 committed by GitHub
parent 312c36f415
commit af8b6ce081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,7 +261,7 @@ if (matchDomain('elmercurio.com')) {
// Restore scrolling
document.onreadystatechange = function () {
if (document.readyState === 'complete') {
document.querySelector('.css-mcm29f').setAttribute('style', 'position:relative');
document.querySelector('.css-mcm29f')?.setAttribute('style', 'position:relative');
}
};
} else if (matchDomain('technologyreview.com')) {