Skip to content

Commit 94f7bf3

Browse files
committed
Allow using of renamed Chrome on Mac
This ports the fix from master to release branches See #632
1 parent 36b7d5d commit 94f7bf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/services/android-debug-service.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class AndroidDebugService implements IDebugService {
2525
private $errors: IErrors,
2626
private $opener: IOpener,
2727
private $staticConfig: IStaticConfig,
28-
private $utils: IUtils) { }
28+
private $utils: IUtils,
29+
private $config: IConfiguration) { }
2930

3031
private get platform() { return "android"; }
3132

@@ -169,7 +170,7 @@ class AndroidDebugService implements IDebugService {
169170
}
170171

171172
private openDebuggerClient(url: string): void {
172-
let chrome = this.$hostInfo.isDarwin ? "Google\ Chrome" : "chrome";
173+
let chrome = this.$hostInfo.isDarwin ? this.$config.ANDROID_DEBUG_UI_MAC : "chrome";
173174
let child = this.$opener.open(url, chrome);
174175
if(!child) {
175176
this.$errors.fail(`Unable to open ${chrome}.`);

0 commit comments

Comments
 (0)