default-browser-id
Advanced tools
+8
-1
@@ -17,3 +17,10 @@ import {promisify} from 'node:util'; | ||
| return match?.groups.id ?? 'com.apple.Safari'; | ||
| const browserId = match?.groups.id ?? 'com.apple.Safari'; | ||
| // Correct the case for Safari's bundle identifier | ||
| if (browserId === 'com.apple.safari') { | ||
| return 'com.apple.Safari'; | ||
| } | ||
| return browserId; | ||
| } |
+1
-1
| { | ||
| "name": "default-browser-id", | ||
| "version": "5.0.0", | ||
| "version": "5.0.1", | ||
| "description": "Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
3173
5.21%18
38.46%