Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue/8608 #2806

Merged
merged 1 commit into from
Aug 26, 2024
Merged

issue/8608 #2806

merged 1 commit into from
Aug 26, 2024

Conversation

leunge
Copy link
Contributor

@leunge leunge commented Aug 26, 2024

@leunge leunge changed the title issu3/8608 issue/8608 Aug 26, 2024
@leunge leunge merged commit 31d82a7 into develop Aug 26, 2024
4 of 5 checks passed
@github-actions github-actions bot added the issue 내부 이슈 처리를 위한 PR label Aug 26, 2024
@leunge leunge deleted the issue/8608_2 branch August 26, 2024 11:29
async getVideoStream(source: string) {
const isMobile = typeof window.orientation !== 'undefined';
const isPortrait = isMobile && window.screen.orientation.type.includes('portrait');
const width = isPortrait ? this.VIDEO_HEIGHT: this.VIDEO_WIDTH;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·

Suggested change
const width = isPortrait ? this.VIDEO_HEIGHT: this.VIDEO_WIDTH;
const width = isPortrait ? this.VIDEO_HEIGHT : this.VIDEO_WIDTH;

async getVideoStream(source: string) {
const isMobile = typeof window.orientation !== 'undefined';
const isPortrait = isMobile && window.screen.orientation.type.includes('portrait');
const width = isPortrait ? this.VIDEO_HEIGHT: this.VIDEO_WIDTH;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator ':' must be spaced.

Suggested change
const width = isPortrait ? this.VIDEO_HEIGHT: this.VIDEO_WIDTH;
const width = isPortrait ? this.VIDEO_HEIGHT : this.VIDEO_WIDTH;

const isMobile = typeof window.orientation !== 'undefined';
const isPortrait = isMobile && window.screen.orientation.type.includes('portrait');
const width = isPortrait ? this.VIDEO_HEIGHT: this.VIDEO_WIDTH;
const height = isPortrait ? this.VIDEO_WIDTH: this.VIDEO_HEIGHT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·

Suggested change
const height = isPortrait ? this.VIDEO_WIDTH: this.VIDEO_HEIGHT;
const height = isPortrait ? this.VIDEO_WIDTH : this.VIDEO_HEIGHT;

const isMobile = typeof window.orientation !== 'undefined';
const isPortrait = isMobile && window.screen.orientation.type.includes('portrait');
const width = isPortrait ? this.VIDEO_HEIGHT: this.VIDEO_WIDTH;
const height = isPortrait ? this.VIDEO_WIDTH: this.VIDEO_HEIGHT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator ':' must be spaced.

Suggested change
const height = isPortrait ? this.VIDEO_WIDTH: this.VIDEO_HEIGHT;
const height = isPortrait ? this.VIDEO_WIDTH : this.VIDEO_HEIGHT;

if (isMobile && !window.screen.orientation.onchange) {
window.screen.orientation.onchange = reloadVideo;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ;

Suggested change
}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue 내부 이슈 처리를 위한 PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant