Skip to content

Commit

Permalink
fix-media-access-windows (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
maidh91 authored Jan 20, 2025
1 parent 7abe148 commit 4e4ea0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1652,8 +1652,8 @@ class PearGUI extends ReadyResource {
}

async askForMediaAccess ({ id, media }) {
if (isLinux || isWindows) return false
if (media === 'screen') {
if (isLinux) return false
if (media === 'screen' || isWindows) {
return electron.systemPreferences.getMediaAccessStatus(media)
}

Expand Down

0 comments on commit 4e4ea0c

Please sign in to comment.