Skip to content

Commit

Permalink
Merge pull request #68 from brave/narrow-deamp-selector
Browse files Browse the repository at this point in the history
Narrow selector on deamp to not affect non-AMP links
  • Loading branch information
pes10k authored May 9, 2022
2 parents d96fe02 + 4789b9b commit 593e49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/de-amp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function () {
if (typeof deAmpEnabled !== 'undefined' && deAmpEnabled) {
const selector = 'a'
const attr = 'jsaction'
const selector = `a[data-amp-title][${attr}]`
let timer
const rmattr = () => {
timer = undefined
Expand Down

0 comments on commit 593e49d

Please sign in to comment.