[lunaSend] subtitle if 수정정
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user