diff --git a/procentric/application/lib/hoteltv.hcap.js b/procentric/application/lib/hoteltv.hcap.js index 021e8f8..acecd0e 100755 --- a/procentric/application/lib/hoteltv.hcap.js +++ b/procentric/application/lib/hoteltv.hcap.js @@ -1572,7 +1572,7 @@ HotelTV.hal = (function() { if (g_nativApps_info.generalapp != null) { if (_name == "coupangplay") { for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) { - if (item.title == 'Coupang Play') { + if (item.title.toLowerCase() == 'coupang play') { hcap.application.launchApplication({ "id" : item.appId, "onSuccess" : function() { @@ -1586,7 +1586,7 @@ HotelTV.hal = (function() { } } else if (_name == "wavve") { for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) { - if (item.title == 'wavve') { + if (item.title.toLowerCase() == 'wavve') { hcap.application.launchApplication({ "id" : item.appId, "onSuccess" : function() { @@ -1600,7 +1600,7 @@ HotelTV.hal = (function() { } } else if (_name == "tving") { for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) { - if (item.title == 'TVING') { + if (item.title.toLowerCase() == 'tving') { hcap.application.launchApplication({ "id" : item.appId, "onSuccess" : function() { @@ -1649,7 +1649,7 @@ HotelTV.hal = (function() { if (g_nativApps_info.preapp != null) { if (_name == "youtube") { for (const [key, item] of Object.entries(g_nativApps_info.preapp)) { - if (item.title == 'YouTube') { + if (item.title.toLowerCase() == 'youtube') { hcap.preloadedApplication.launchPreloadedApplication({ "id": item.id, // YOUTUBE "onSuccess": function() { @@ -1663,7 +1663,7 @@ HotelTV.hal = (function() { } } else if (_name == "netflix") { for (const [key, item] of Object.entries(g_nativApps_info.preapp)) { - if (item.title == 'Netflix') { + if (item.title.toLowerCase() == 'netflix') { hcap.preloadedApplication.launchPreloadedApplication({ "id": item.id, // NETFLIX "parameter": `{'params': {'hotel_id':${_param.hotel_name},'launcher_version':'1.0'}`,