Skip to content

Commit

Permalink
Update proxy6.js
Browse files Browse the repository at this point in the history
added queueRemoveAllVideoMarkerCircles
  • Loading branch information
masudhossain authored May 18, 2023
1 parent 3de5026 commit d31b06a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proxy6.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ window.addEventListener('message', function(event) {
toggleQueueCommentable(event.data.boolean);
queueRemoveAllCircles();
}

if(event.data.execute == "queueRemoveAllVideoMarkerCircles"){
console.log("Execute:queueRemoveAllVideoMarkerCircles")
queueRemoveAllVideoMarkerCircles();
}

if(event.data.execute == "addVideoMarkerCircle"){
// console.log("addVideoMarkerCircle", event);
Expand Down Expand Up @@ -75,6 +80,11 @@ function queueRemoveAllCircles () {
document.querySelectorAll('.q-circle').forEach(e => e.remove());
}

// Remove all video marker circles
function queueRemoveAllVideoMarkerCircles () {
document.querySelectorAll('.q-circle-video-marker').forEach(e => e.remove());
}

// document.addEventListener('mousedown', create );

document.addEventListener('click', e => {
Expand Down

0 comments on commit d31b06a

Please sign in to comment.