mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 21:52:31 -05:00
don't return await
This commit is contained in:
parent
6e1bfc33f3
commit
7ee12dcdd8
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ const makeFullUrl = (url, search = null) =>
|
|||
const askForMediaAccess = async mediaType => {
|
||||
if (systemPreferences.askForMediaAccess) {
|
||||
// Electron currently only implements this on macOS
|
||||
return await systemPreferences.askForMediaAccess(mediaType);
|
||||
return systemPreferences.askForMediaAccess(mediaType);
|
||||
}
|
||||
// For other platforms we can't reasonably do anything other than assume we have access.
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue