deviceid error
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user