[lunaSend] subtitle if 수정정

This commit is contained in:
고동영
2024-06-14 15:12:01 +09:00
parent 56fd466639
commit fab846b483

View File

@@ -92,7 +92,7 @@ export const getSystemSettings = (
{ onSuccess, onFailure, onComplete }
) => {
if (
typeof window === "object" &&
typeof window === "object" && // 브라우저인지
window.PalmSystem &&
process.env.REACT_APP_MODE !== "DEBUG"
) {
@@ -147,7 +147,11 @@ export const setSubtitleEnable = (
captionEnable,
{ onSuccess, onFailure, onComplete }
) => {
if (window.PalmSystem) {
if (
typeof window === "object" &&
window.PalmSystem &&
process.env.REACT_APP_MODE !== "DEBUG"
) {
if (captionEnable) {
return new LS2Request().send({
service: "luna://com.webos.service.tv.subtitle",
@@ -175,7 +179,11 @@ export const setSubtitleEnableOver5 = (
showId,
{ onSuccess, onFailure, onComplete }
) => {
if (window.PalmSystem) {
if (
typeof window === "object" &&
window.PalmSystem &&
process.env.REACT_APP_MODE !== "DEBUG"
) {
return new LS2Request().send({
service: "luna://com.webos.media",
method: "setSubtitleEnable",