Skip to content

Commit

Permalink
fix: wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
biati-digital committed Apr 1, 2024
1 parent eb4f231 commit 255c7b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/video/src/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type VideoTypes = 'youtube' | 'vimeo' | 'local';
export interface VideoOptions extends PluginOptions {
maxWidth?: string;
aspectRatio?: string;
vertivalAspectRatio?: string;
verticalAspectRatio?: string;
autoPlay?: boolean;
injectAssets?: boolean;
vimeo?: {
Expand Down Expand Up @@ -44,7 +44,7 @@ export default class VideoSlide extends GLightboxPlugin {
defaults: VideoOptions = {
maxWidth: '840px',
aspectRatio: '16/9',
vertivalAspectRatio: '9/16',
verticalAspectRatio: '9/16',
autoPlay: true,
injectAssets: true,
vimeo: {
Expand Down Expand Up @@ -189,7 +189,7 @@ export default class VideoSlide extends GLightboxPlugin {

if (config.url.includes('shorts')) {
slide?.style.setProperty('--gl-video-max-width', '460px');
slide?.style.setProperty('--gl-video-aspect-ratio', this.options.vertivalAspectRatio);
slide?.style.setProperty('--gl-video-aspect-ratio', this.options.verticalAspectRatio);
}

const iframe = createIframe({
Expand Down

0 comments on commit 255c7b5

Please sign in to comment.