We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dccb7ce commit 52ec166Copy full SHA for 52ec166
lib/device-manager.ts
@@ -33,7 +33,7 @@ export class DeviceManager implements IDeviceManager {
33
args.appiumCaps.platformName = args.appiumCaps.platformName.toLowerCase();
34
let device: IDevice = DeviceManager.getDefaultDevice(args);
35
const token = process.env["DEVICE_TOKEN"] || process.env.npm_config_deviceToken;
36
- device.token = device.token.replace("emulator-", "");
+ device.token = token && token.replace("emulator-", "");
37
device.name = process.env["DEVICE_NAME"] || device.name;
38
console.log("Default device: ", device);
39
DeviceManager.cleanUnsetProp(device);
0 commit comments