Skip to content

Commit

Permalink
Bug fixed in FullscreenButtonPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ferserc1 committed Jun 3, 2024
1 parent 80cbd67 commit b118ec3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/paella-basic-plugins.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/paella-basic-plugins.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paella-basic-plugins",
"version": "1.44.8",
"version": "1.44.9",
"description": "Basic plugins for Paella Player",
"main": "src/index.js",
"module": "dist/paella-basic-plugins.js",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/es.upv.paella.fullscreenButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BasicPluginsModule from './BasicPluginsModule';
import fullscreenIcon from '../icons/fullscreen.svg';
import windowedIcon from '../icons/windowed.svg';

export default class PauseButtonPlugin extends ButtonPlugin {
export default class FullscreenButtonPlugin extends ButtonPlugin {
getPluginModuleInstance() {
return BasicPluginsModule.Get();
}
Expand All @@ -29,7 +29,7 @@ export default class PauseButtonPlugin extends ButtonPlugin {

async isEnabled() {
const enabled = await super.isEnabled();
return enabled && this.player.isFullScreenSupported() || this.isFallbackFSAvailable;
return enabled && (this.player.isFullScreenSupported() || this.isFallbackFSAvailable);
}

async load() {
Expand Down

0 comments on commit b118ec3

Please sign in to comment.