We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ea6dd9 commit c89496aCopy full SHA for c89496a
app.js
@@ -56,9 +56,11 @@ function app() {
56
const eventId = this.getAttribute('data-eventid');
57
const dupBtn = `<div class="dup-btn" data-id="${eventId}">${dupIcon}</div>`;
58
intervalAddIcon = setInterval(function () {
59
- if(document.querySelector('.pPTZAe') == null) return;
+ const eventNode = document.querySelector('.pPTZAe');
60
+ if(eventNode == null) return;
61
clearInterval(intervalAddIcon);
- document.querySelector('.pPTZAe').prepend(htmlToElement(dupBtn));
62
+ if(eventNode.querySelector('.dup-btn') != null) return;
63
+ eventNode.prepend(htmlToElement(dupBtn));
64
}, 50);
65
});
66
0 commit comments