don't return await

This commit is contained in:
Christopher Willis-Ford 2020-03-17 18:59:03 -07:00
parent 6e1bfc33f3
commit 7ee12dcdd8

View file

@ -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;