File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
packages/docusaurus/src/commands/utils/openBrowser Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ async function tryOpenWithAppleScript({
9595 ) ;
9696 }
9797
98+ // Test this manually with:
99+ // osascript ./packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript "http://localhost:8080" "Google Chrome"
100+ // osascript ./packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript "http://localhost:8080" "Arc"
98101 async function tryBrowser ( browserName : string ) : Promise < boolean > {
99102 try {
100103 // This command runs the openChrome.applescript (copied from CRA)
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ on run argv
1919 set theProgram to item 2 of argv
2020 end if
2121
22+ -- Arc: simple open + activate, no tab reuse
23+ -- See https://github.com/facebook/docusaurus/issues/11582
24+ if theProgram is " Arc" then
25+ tell application " Arc"
26+ activate
27+ open location theURL
28+ end tell
29+ return
30+ end if
31+
2232 using terms from application " Google Chrome"
2333 tell application theProgram
2434
You can’t perform that action at this time.
0 commit comments