Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fix microphone
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelScheit committed Aug 5, 2020
1 parent 1b4ad08 commit 99f18b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function createWindow() {
win.webContents.on("did-navigate", () => {
win.webContents.executeJavaScript(`document.write(atob("${btoa(html)}"))`);
});
systemPreferences.askForMediaAccess("microphone");
if (systemPreferences && systemPreferences.askForMediaAccess) systemPreferences.askForMediaAccess("microphone");
win.webContents.on("new-window", function (e, url) {
e.preventDefault();
require("electron").shell.openExternal(url);
Expand Down

0 comments on commit 99f18b4

Please sign in to comment.