deviceid error
This commit is contained in:
@@ -81,8 +81,7 @@ export const getDeviceId = (
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// onSuccess({ returnValue: true, idList: [{ idValue: Config.DEBUG_WINDOW_DEVICEID, idtype: "LGUDID" }],
|
||||
// });
|
||||
onSuccess({ returnValue: true, idList: [{ idValue: Config.DEBUG_WINDOW_DEVICEID, idtype: "LGUDID" }],});
|
||||
onComplete();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import LS2Request from "./LS2Request";
|
||||
import * as Config from '../utils/Config';
|
||||
|
||||
export const getConnectionStatus = ({ onSuccess, onFailure, onComplete }) => {
|
||||
if (process.env.REACT_APP_MODE === "DEBUG") {
|
||||
@@ -88,19 +87,3 @@ export const getHttpHeaderForServiceRequest = ({
|
||||
});
|
||||
}
|
||||
};
|
||||
export const getDeviceId = (parameters, {onSuccess, onFailure, onComplete}) => {
|
||||
if (typeof window === 'object' && window.PalmSystem) {
|
||||
return new LS2Request().send({
|
||||
service: 'luna://com.webos.service.sm',
|
||||
method: 'deviceid/getIDs',
|
||||
subscribe: false,
|
||||
parameters: parameters,
|
||||
onSuccess,
|
||||
onFailure,
|
||||
onComplete
|
||||
});
|
||||
}else{
|
||||
onSuccess({returnValue: true, idList: [{idValue: Config.DEBUG_WINDOW_DEVICEID, idtype:"LGUDID"}]});
|
||||
onComplete();
|
||||
}
|
||||
};
|
||||
@@ -7,7 +7,7 @@ export const SFT_TEST = "5555";
|
||||
export const SFT_TEST2 = "6666";
|
||||
export const DEFAULT_SERVERTYPE = "qt2"; //system, qt2, qt, prd
|
||||
export const DEFAULT_RIC_CODE = "aic"; //system, aic, eic, ruc
|
||||
export const DEBUG_WINDOW_DEVICEID = 'testdevice';
|
||||
export const DEBUG_WINDOW_DEVICEID = 'testdeviceid';
|
||||
export const panel_names = {
|
||||
INTRO_PANEL: "intropanel",
|
||||
HOME_PANEL: "homepanel",
|
||||
|
||||
Reference in New Issue
Block a user