Skip to content

Commit e73b149

Browse files
committed
fix: Fix HDR detection on WebOS on compiled builds (#9185)
Fixes #9184
1 parent 5677444 commit e73b149

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/device/webos.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ shaka.device.WebOS = class extends shaka.device.AbstractDevice {
2929
try {
3030
const bridge = new PalmServiceBridge();
3131
bridge.onservicecallback = (n) => {
32-
shaka.log.info(n);
32+
shaka.log.info('WebOS: config support', n);
33+
/** @type {!shaka.device.WebOS.PalmServiceBridgeResponse} */
3334
const configsJSON =
3435
/** @type {shaka.device.WebOS.PalmServiceBridgeResponse} */ (
3536
JSON.parse(n));
36-
this.supportHdr_ = configsJSON.configs['tv.model.supportHDR'] ||
37-
configsJSON.configs['tv.config.supportDolbyHDRContents'] || false;
37+
this.supportHdr_ = configsJSON['configs']['tv.model.supportHDR'] ||
38+
configsJSON['configs']['tv.config.supportDolbyHDRContents'] || false;
3839
};
3940
const configs = {
40-
configNames: [
41+
'configNames': [
4142
'tv.model.supportHDR',
4243
'tv.config.supportDolbyHDRContents',
4344
],

0 commit comments

Comments
 (0)