Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 59850ac

Browse files
committed
Allow the user to manually set Chrome app name
fixes NativeScript/nativescript-cli#632
1 parent 9d7b712 commit 59850ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mobile/android/android-device.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
6565
private $devicePlatformsConstants: Mobile.IDevicePlatformsConstants,
6666
private $options: IOptions,
6767
private $logcatHelper: Mobile.ILogcatHelper,
68-
private $hostInfo: IHostInfo) {
68+
private $hostInfo: IHostInfo,
69+
private $config: IConfiguration) {
6970
let details: IAndroidDeviceDetails = this.getDeviceDetails().wait();
7071

7172
this.model = details.model;
@@ -210,7 +211,7 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
210211
}
211212

212213
private openDebuggerClient(url: string): void {
213-
let chrome = this.$hostInfo.isDarwin ? "Google\ Chrome" : "chrome";
214+
let chrome = this.$hostInfo.isDarwin ? this.$config.ANDROID_DEBUG_UI_MAC : "chrome";
214215
let child = this.$opener.open(url, chrome);
215216
if(!child) {
216217
this.$errors.fail(`Unable to open ${chrome}.`);

0 commit comments

Comments
 (0)