Skip to content

Commit

Permalink
fix(player/react): unexpected token { on iOS<16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Oct 24, 2023
1 parent 73d2b2e commit e1b8d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function define({ dev }) {
}),
esbuildPlugin({
tsconfig: 'tsconfig.build.json',
target: 'esnext',
target: 'es2021',
platform: 'browser',
define: {
__DEV__: dev ? 'true' : 'false',
Expand Down
1 change: 1 addition & 0 deletions packages/vidstack/src/core/state/media-request-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ export class MediaRequestManager extends MediaPlayerController implements MediaR
if (!event.detail) return;
try {
const lockType = peek(this.$props.fullscreenOrientation);

if (this._orientation.supported && !isUndefined(lockType)) {
await this._orientation.lock(lockType);
}
Expand Down

0 comments on commit e1b8d80

Please sign in to comment.