[lunaSend] subtitle 조건문 수정

This commit is contained in:
고동영
2024-06-14 15:04:10 +09:00
parent 4759916f6c
commit 222d5bfb3b

View File

@@ -147,11 +147,7 @@ export const setSubtitleEnable = (
captionEnable,
{ onSuccess, onFailure, onComplete }
) => {
if (
typeof window === "object" &&
window.PalmSystem &&
process.env.REACT_APP_MODE !== "DEBUG"
) {
if (window.PalmSystem) {
if (captionEnable) {
return new LS2Request().send({
service: "luna://com.webos.service.tv.subtitle",
@@ -180,11 +176,7 @@ export const setSubtitleEnableOver5 = (
{ onSuccess, onFailure, onComplete }
) => {
console.log("#sutitle action");
if (
typeof window === "object" &&
window.PalmSystem &&
process.env.REACT_APP_MODE !== "DEBUG"
) {
if (window.PalmSystem) {
console.log("###showId", showId);
console.log("#onSuccess", onSuccess);
return new LS2Request().send({