deviceid error

This commit is contained in:
yonghyon
2024-03-08 10:16:57 +09:00
parent 6759561acf
commit 945128b127
3 changed files with 2 additions and 20 deletions

View File

@@ -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();
}
};