sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
783 stars 161 forks source link

fix: remove accessibility prompt 🐛 #178

Closed kentbetita closed 6 months ago

kentbetita commented 6 months ago

Why

There has been issues with macOS users regarding accessibility permission. The accessibility permission is needed in order to get the complete window title. Apparently, the screenRecordingPermission already handles this concern so there is no need for the accessibility permission. To fix this we just completely remove the code for the accessibility prompt check.

Changes

Related

sindresorhus commented 6 months ago

Actually, looking more into this (which you should have done too), the accessibility permission is required to get the URL of the active tab in browsers. The comment was just incorrect.