fix(config): Bring back minHDHeight

This commit is contained in:
Leonard Kim 2017-05-17 12:57:22 -07:00 committed by hristoterezov
parent 896dcde2b2
commit 0f0ff6788c
2 changed files with 4 additions and 4 deletions

View File

@ -76,9 +76,9 @@ var config = { // eslint-disable-line no-unused-vars
'During that time service will not be available. ' + 'During that time service will not be available. ' +
'Apologise for inconvenience.',*/ 'Apologise for inconvenience.',*/
disableThirdPartyRequests: false, disableThirdPartyRequests: false,
// The minumum value a video's height or width can be, whichever is // The minumum value a video's height (or width, whichever is smaller) needs
// smaller, to be considered high-definition. // to be in order to be considered high-definition.
minHDSize: 540, minHDHeight: 540,
// If true - all users without token will be considered guests and all users // If true - all users without token will be considered guests and all users
// with token will be considered non-guests. Only guests will be allowed to // with token will be considered non-guests. Only guests will be allowed to
// edit their profile. // edit their profile.

View File

@ -569,7 +569,7 @@ export default class LargeVideoManager {
*/ */
_updateVideoResolutionStatus() { _updateVideoResolutionStatus() {
const { height, width } = this.videoContainer.getStreamSize(); const { height, width } = this.videoContainer.getStreamSize();
const isCurrentlyHD = Math.min(height, width) >= config.minHDSize; const isCurrentlyHD = Math.min(height, width) >= config.minHDHeight;
APP.store.dispatch(setLargeVideoHDStatus(isCurrentlyHD)); APP.store.dispatch(setLargeVideoHDStatus(isCurrentlyHD));
} }