@@ -71,6 +71,8 @@ import { sendLogTotalRecommend } from "../actions/logActions";
|
||||
// } from "../utils/focus-monitor";
|
||||
// import { PanelHoc } from "../components/TPanel/TPanel";
|
||||
|
||||
|
||||
|
||||
let foreGroundChangeTimer = null;
|
||||
|
||||
// 기존 콘솔 메서드를 백업
|
||||
@@ -147,15 +149,15 @@ function AppBase(props) {
|
||||
(state) => state.common.appStatus.cursorVisible
|
||||
);
|
||||
const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
|
||||
const deviceRegistered = useSelector(
|
||||
(state) => state.common.deviceRegistered
|
||||
);
|
||||
const deviceRegistered = useSelector((state) => state.common.deviceRegistered);
|
||||
// const optionalTermsAgree = useSelector((state) => state.common.optionalTermsAgree);
|
||||
const termsLoading = useSelector((state) => state.common.termsLoading);
|
||||
// termsFlag 전체 상태 확인
|
||||
// const termsFlag = useSelector((state) => state.common.termsFlag);
|
||||
const termsData = useSelector((state) => state.home.termsData);
|
||||
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
if (termsData && termsData.data && termsData.data.terms) {
|
||||
@@ -171,8 +173,7 @@ function AppBase(props) {
|
||||
// const macAddress = useSelector((state) => state.common.macAddress);
|
||||
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
const deviceCountryCode =
|
||||
(httpHeader && httpHeader["X-Device-Country"]) || "";
|
||||
const deviceCountryCode = httpHeader && httpHeader["X-Device-Country"] || "";
|
||||
|
||||
useEffect(() => {
|
||||
if (!cursorVisible && !Spotlight.getCurrent()) {
|
||||
@@ -220,7 +221,9 @@ function AppBase(props) {
|
||||
|
||||
// called by [receive httpHeader, launch, relaunch]
|
||||
const initService = useCallback(
|
||||
|
||||
(haveyInit = true) => {
|
||||
|
||||
// console.log(
|
||||
// "<<<<<<<<<<<<< appinfo >>>>>>>>>>>>{heavyInit, appinfo} ",
|
||||
// haveyInit,
|
||||
@@ -237,15 +240,12 @@ function AppBase(props) {
|
||||
if (haveyInit) {
|
||||
dispatch(changeAppStatus({ connectionFailed: false }));
|
||||
if (typeof window === "object" && window.PalmSystem) {
|
||||
dispatch(
|
||||
changeAppStatus({
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
cursorVisible:
|
||||
window.PalmSystem &&
|
||||
window.PalmSystem.cursor &&
|
||||
window.PalmSystem.cursor.visibility,
|
||||
})
|
||||
);
|
||||
dispatch(
|
||||
changeAppStatus({
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
|
||||
})
|
||||
);
|
||||
}
|
||||
dispatch(getHomeMenu());
|
||||
dispatch(getMyRecommandedKeyword());
|
||||
@@ -285,7 +285,7 @@ function AppBase(props) {
|
||||
visible: true,
|
||||
})
|
||||
);
|
||||
// clearLaunchParams();
|
||||
clearLaunchParams();
|
||||
}
|
||||
},
|
||||
[dispatch]
|
||||
@@ -311,15 +311,11 @@ function AppBase(props) {
|
||||
// set foreground flag using delay time.
|
||||
clearTimeout(foreGroundChangeTimer);
|
||||
foreGroundChangeTimer = setTimeout(() => {
|
||||
console.log(
|
||||
"visibility changed !!! ==> set to foreground cursorVisible",
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
JSON.stringify(
|
||||
window.PalmSystem &&
|
||||
window.PalmSystem.cursor &&
|
||||
window.PalmSystem.cursor.visibility
|
||||
)
|
||||
); // eslint-disable-line no-console
|
||||
console.log(
|
||||
"visibility changed !!! ==> set to foreground cursorVisible",
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
JSON.stringify(window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility)
|
||||
); // eslint-disable-line no-console
|
||||
if (platform.platformName !== "webos") {
|
||||
//for debug
|
||||
dispatch(
|
||||
@@ -333,10 +329,7 @@ function AppBase(props) {
|
||||
changeAppStatus({
|
||||
isAppForeground: true,
|
||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||
cursorVisible:
|
||||
window.PalmSystem &&
|
||||
window.PalmSystem.cursor &&
|
||||
window.PalmSystem.cursor.visibility,
|
||||
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user