Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maliroteh-sf committed May 22, 2024
1 parent 6a44b00 commit 1bc05b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/PreviewUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export class PreviewUtils {
return `ws://localhost:${port}`; // cannot be Safari since it is only available on Mac
}

// Check to see if the default browser is Safari
// If we've made it this far then it means that platform=desktop and we're on a Mac
// macOS use case: check to see if the default browser is Safari
// From https://apple.stackexchange.com/questions/313454/applescript-find-the-users-set-default-browser
const cmd =
"defaults read ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure | awk -F'\"' '/http;/{print window[(NR)-1]}{window[NR]=$2}'";
Expand Down

0 comments on commit 1bc05b8

Please sign in to comment.