Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #5461: Fix empty check for canonicalLinkElm on de-amping
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba committed Jun 7, 2022
1 parent 2a0d131 commit 6d44931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/Frontend/UserContent/UserScripts/DeAMP.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

const canonicalLinkElm = D.querySelector('head > link[rel="canonical"][href^="http"]')
if (!canonicalLinkElm === null) {
if (canonicalLinkElm === null || canonicalLinkElm === undefined) {
// didn't find a link elm.
checkIfShouldStopChecking()
return
Expand Down

0 comments on commit 6d44931

Please sign in to comment.