Skip to content

Commit

Permalink
Fix youtube searching (#136)
Browse files Browse the repository at this point in the history
* Fix youtube searching

* Fix code style issues with Prettier

---------

Co-authored-by: Lint Action <[email protected]>
  • Loading branch information
Menkveld-24 and lint-action authored Feb 1, 2024
1 parent 2375b40 commit 354029d
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 136 deletions.
7 changes: 5 additions & 2 deletions client/src/views/ProtubeScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ onMounted(() => {
if (event.data === -1) {
return;
}
if(event.data === 5 && playerState.value.playerType === enums.TYPES.VIDEO){
if (
event.data === 5 &&
playerState.value.playerType === enums.TYPES.VIDEO
) {
player.playVideo();
bufferTime = (Date.now() - firstTime) / 1000;
}
Expand Down
Loading

0 comments on commit 354029d

Please sign in to comment.