Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ async function tryOpenWithAppleScript({
);
}

// Test this manually with:
// osascript ./packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript "http://localhost:8080" "Google Chrome"
// osascript ./packages/docusaurus/src/commands/utils/openBrowser/openChrome.applescript "http://localhost:8080" "Arc"
async function tryBrowser(browserName: string): Promise<boolean> {
try {
// This command runs the openChrome.applescript (copied from CRA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ on run argv
set theProgram to item 2 of argv
end if

-- Arc: simple open + activate, no tab reuse
-- See https://github.com/facebook/docusaurus/issues/11582
if theProgram is "Arc" then
tell application "Arc"
activate
open location theURL
end tell
return
end if

using terms from application "Google Chrome"
tell application theProgram

Expand Down