File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,11 @@ let disableScreenRecordingPermission = CommandLine.arguments.contains("--no-scre
89
89
let enableOpenWindowsList = CommandLine . arguments. contains ( " --open-windows-list " )
90
90
91
91
// Show accessibility permission prompt if needed. Required to get the URL of the active tab in browsers.
92
- if
93
- !disableAccessibilityPermission,
94
- !AXIsProcessTrustedWithOptions( [ " AXTrustedCheckOptionPrompt " : true ] as CFDictionary )
95
- {
96
- print ( " active-win requires the accessibility permission in “System Settings › Privacy & Security › Accessibility”. " )
97
- exit ( 1 )
92
+ if !disableAccessibilityPermission {
93
+ if !AXIsProcessTrustedWithOptions( [ " AXTrustedCheckOptionPrompt " : true ] as CFDictionary ) {
94
+ print ( " active-win requires the accessibility permission in “System Settings › Privacy & Security › Accessibility”. " )
95
+ exit ( 1 )
96
+ }
98
97
}
99
98
100
99
// Show screen recording permission prompt if needed. Required to get the complete window title.
You can’t perform that action at this time.
0 commit comments