From 94f7bf3dafc59efa3006c2d77cd0a336f1eed89b Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Mon, 3 Aug 2015 11:17:25 +0300 Subject: [PATCH] Allow using of renamed Chrome on Mac This ports the fix from master to release branches See https://github.com/NativeScript/nativescript-cli/issues/632 --- lib/services/android-debug-service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/services/android-debug-service.ts b/lib/services/android-debug-service.ts index 388198aa6d..0b43118fa9 100644 --- a/lib/services/android-debug-service.ts +++ b/lib/services/android-debug-service.ts @@ -25,7 +25,8 @@ class AndroidDebugService implements IDebugService { private $errors: IErrors, private $opener: IOpener, private $staticConfig: IStaticConfig, - private $utils: IUtils) { } + private $utils: IUtils, + private $config: IConfiguration) { } private get platform() { return "android"; } @@ -169,7 +170,7 @@ class AndroidDebugService implements IDebugService { } private openDebuggerClient(url: string): void { - let chrome = this.$hostInfo.isDarwin ? "Google\ Chrome" : "chrome"; + let chrome = this.$hostInfo.isDarwin ? this.$config.ANDROID_DEBUG_UI_MAC : "chrome"; let child = this.$opener.open(url, chrome); if(!child) { this.$errors.fail(`Unable to open ${chrome}.`);