Skip to content

Commit

Permalink
fix target works with ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius456 committed Sep 14, 2024
1 parent 0ba57b9 commit 0bd9aa7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/sdk-webos/src/deviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ export const runWebosSimOrDevice = async () => {
if (device) {
// Running on a device
const actualDevices = devices.filter((d) => d.isDevice);

if (!actualDevices.length) {
// No device configured. Asking to configure
const response = await inquirerPrompt({
Expand Down Expand Up @@ -341,6 +340,11 @@ export const runWebosSimOrDevice = async () => {
}
} else {
// Target specified, using that
return installAndLaunchApp(c.program.opts().target, appPath, tId);
const target_name = devices.find((device) => {
return device.device.includes(c.program.opts().target);
})?.name || c.program.opts().target;


return installAndLaunchApp(target_name, appPath, tId);
}
};

0 comments on commit 0bd9aa7

Please sign in to comment.