-
Notifications
You must be signed in to change notification settings - Fork 467
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
issue/8608 #2806
Conversation
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; |
There was a problem hiding this comment.
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 ·
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operator ':' must be spaced.
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; |
There was a problem hiding this comment.
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 ·
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operator ':' must be spaced.
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; | ||
} | ||
} |
There was a problem hiding this comment.
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 ;
} | |
}; |
[#8608]