Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: 🚑 Fix pressing back button in fullscreen exiting the player
Browse files Browse the repository at this point in the history
fix #359
  • Loading branch information
Frontesque committed Aug 6, 2022
1 parent fad4bb2 commit 5a6119d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions NUXT/components/Player/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ import fscontrols from "~/components/Player/fscontrols.vue";
import fullscreen from "~/components/Player/fullscreen.vue";
import progressbar from "~/components/Player/progressbar.vue";
import sponsorblock from "~/components/Player/sponsorblock.vue";
import backType from "~/plugins/classes/backType";
export default {
components: {
sponsorblock,
Expand Down Expand Up @@ -683,6 +686,13 @@ export default {
this.$vuetube.navigationBar.hide();
this.$vuetube.statusBar.hide();
this.isFullscreen = true;
//--- Fix pressing back button in fullscreen exiting the player ---//
this.$vuetube.addBackAction(new backType(
() => { this.exitFullscreen(true); },
() => { return this.isFullscreen; }
));
},
getPlayer() {
return this.$refs.player;
Expand Down

0 comments on commit 5a6119d

Please sign in to comment.