Skip to content

Commit

Permalink
fix: Issue with compiler minifying webOS device properties (#6558)
Browse files Browse the repository at this point in the history
Fixes #6533

The original author is: @stuartflanagan 
The original PR is:
#6554
  • Loading branch information
avelad committed May 8, 2024
1 parent 91d3792 commit b591bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/platform.js
Expand Up @@ -684,8 +684,8 @@ shaka.util.Platform = class {
/** @type {{screenWidth: number, screenHeight: number}} */(
JSON.parse(window.PalmSystem.deviceInfo));
// WebOS has always been able to do 1080p. Assume a 1080p limit.
maxResolution.width = Math.max(1920, deviceInfo.screenWidth);
maxResolution.height = Math.max(1080, deviceInfo.screenHeight);
maxResolution.width = Math.max(1920, deviceInfo['screenWidth']);
maxResolution.height = Math.max(1080, deviceInfo['screenHeight']);
} catch (e) {
shaka.log.alwaysWarn('WebOS: Error detecting screen size, default ' +
'screen size 1920x1080.');
Expand Down

0 comments on commit b591bfe

Please sign in to comment.