TV MAC ADRESS 요청 루나 API 함수 추가 2차
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
changeAppStatus,
|
||||
checkFirstLaunch,
|
||||
deleteOldDb8Datas,
|
||||
getConnectionInfo,
|
||||
getConnectionStatus,
|
||||
getDeviceId,
|
||||
getHttpHeaderForServiceRequest,
|
||||
@@ -21,7 +22,6 @@ import {
|
||||
setGNBMenu,
|
||||
setSecondLayerInfo,
|
||||
} from "../actions/commonActions";
|
||||
import { getConnectionInfo } from "../actions/deviceActions";
|
||||
import { getShoptimeTerms } from "../actions/empActions";
|
||||
import { getHomeMenu, getHomeTerms } from "../actions/homeActions";
|
||||
import {
|
||||
@@ -124,7 +124,7 @@ function AppBase(props) {
|
||||
const oldDb8Deleted = useSelector(
|
||||
(state) => state.localSettings.oldDb8Deleted
|
||||
);
|
||||
const macAddress = useSelector((state) => state.device);
|
||||
const macAddress = useSelector((state) => state.common.macAddress);
|
||||
|
||||
const deviceCountryCode = httpHeader?.["X-Device-Country"] || "";
|
||||
|
||||
@@ -134,13 +134,13 @@ function AppBase(props) {
|
||||
}
|
||||
}, [cursorVisible]);
|
||||
|
||||
// useEffect(() => {
|
||||
// if (logEnable) {
|
||||
// enableConsole();
|
||||
// } else {
|
||||
// disableConsole();
|
||||
// }
|
||||
// }, [logEnable]);
|
||||
useEffect(() => {
|
||||
if (logEnable) {
|
||||
enableConsole();
|
||||
} else {
|
||||
disableConsole();
|
||||
}
|
||||
}, [logEnable]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!oldDb8Deleted) {
|
||||
@@ -263,13 +263,10 @@ function AppBase(props) {
|
||||
}
|
||||
|
||||
dispatch(getConnectionStatus());
|
||||
dispatch(getConnectionInfo());
|
||||
dispatch(getDeviceId());
|
||||
dispatch(getHttpHeaderForServiceRequest());
|
||||
dispatch(getSystemSettings());
|
||||
|
||||
if (window.webOSSystem) {
|
||||
dispatch(getConnectionInfo());
|
||||
}
|
||||
document.addEventListener("visibilitychange", visibilityChanged);
|
||||
document.addEventListener("webOSRelaunch", handleRelaunchEvent);
|
||||
//local virtual cursorvisiblilty
|
||||
@@ -287,7 +284,7 @@ function AppBase(props) {
|
||||
document.removeEventListener("wheel", mouseMoveEvent);
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
}, [dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
let userDataChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user