Skip to content

Commit

Permalink
Add check for uninitalized deAmpEnabled (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivanKaul authored Apr 19, 2022
1 parent 39cc3b5 commit d96fe02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/resources.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/de-amp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function () {
if (deAmpEnabled) {
if (typeof deAmpEnabled !== 'undefined' && deAmpEnabled) {
const selector = 'a'
const attr = 'jsaction'
let timer
Expand Down Expand Up @@ -54,4 +54,4 @@

self.addEventListener('DOMContentLoaded', start, { once: true })
}
})()
})();

0 comments on commit d96fe02

Please sign in to comment.