Commit 3416ba28 authored by Jirat Ki's avatar Jirat Ki Committed by Dan Abramov
Browse files

Fix - openChrome won't open default browser (using Canary) (#1215)

- Use “Chrome” instead of "Google Chrome", It  will try to use current active browser.
  otherwise, use default.
- If “Chrome”s aren’t running, will fallback to opn(url)
parent e7d71bd5
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -14,7 +14,7 @@ property targetWindow: null
on run argv
set theURL to item 1 of argv
tell application "Google Chrome"
tell application "Chrome"
if (count every window) = 0 then
make new window
......@@ -58,7 +58,7 @@ end run
-- if found, store tab, index, and window in properties
-- (properties were declared on top of file)
on lookupTabWithUrl(lookupUrl)
tell application "Google Chrome"
tell application "Chrome"
-- Find a tab with the given url
set found to false
set theTabIndex to -1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment