Skip to content

Commit

Permalink
WRR-1010: Fixed to recognize the last input type properly
Browse files Browse the repository at this point in the history
Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)
  • Loading branch information
SkylerBaek committed Sep 12, 2024
1 parent daf593c commit f36237e
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions packages/webos/lastInputType/lastInputType.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@
*/

import LS2Request from '../LS2Request';
import platform from '../platform';

const requestLastInputType = ({onSuccess, onFailure}) => {
if (platform.tv) {
return new LS2Request().send({
service: 'luna://com.webos.surfacemanager',
method: 'getLastInputType',
subscribe: true,
onSuccess,
onFailure
});
}

return null;
return new LS2Request().send({
service: 'luna://com.webos.surfacemanager',
method: 'getLastInputType',
subscribe: true,
onSuccess,
onFailure
});
};

export default requestLastInputType;
Expand Down

0 comments on commit f36237e

Please sign in to comment.