diff --git a/lib/util/platform.js b/lib/util/platform.js index d9bc9de3e2..b8be771659 100644 --- a/lib/util/platform.js +++ b/lib/util/platform.js @@ -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.');