We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdac5ae commit f4ae3a2Copy full SHA for f4ae3a2
js/content.js
@@ -28,6 +28,8 @@ const videoOverlay = document.getElementById("video-overlay");
28
const video = document.getElementById("video");
29
const skip = document.getElementById("skip-button");
30
31
+var eventButtons = [];
32
+
33
var enabled = true;
34
var assignments = true;
35
var quizzes = false;
@@ -360,7 +362,8 @@ function isValidVideo(url) {
360
362
}
361
363
364
function initButton(button, type) {
- if (button != null) {
365
+ if (button != null && !eventButtons.includes(button)) {
366
+ eventButtons.push(button);
367
button.addEventListener("click", () => {
368
displayBevo(type);
369
});
0 commit comments