Skip to content

Commit

Permalink
Fixed a bug where play pause didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Quadrubo committed Jul 17, 2021
1 parent a9b7282 commit c92e496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function pause() {

writeLog("Pausing.", "INFO");

if(button_pause_array.includes(play_button.getAttribute("title"))){
if(button_pause_array.includes(pause_button.getAttribute("title"))){
pause_button.click();
}
}
Expand All @@ -70,7 +70,7 @@ function play() {
var pause_button = document.getElementsByClassName("videoOsd-btnPause")[0];


if(button_play_array.includes(play_button.getAttribute("title"))){
if(button_play_array.includes(pause_button.getAttribute("title"))){
pause_button.click();
}
}
Expand Down

0 comments on commit c92e496

Please sign in to comment.