Skip to content

Commit

Permalink
Remove console logs and guard microphone access check in isMac
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerrod Lankford committed Apr 30, 2022
1 parent f82b0f3 commit e131f58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ ipcMain.on('notification-clicked', () => {
});

// Ask for permission to use the microphone if the OS requires it
success = systemPreferences.askForMediaAccess("microphone");
if (isMac()) {
console.log('asking for microphone access');
systemPreferences.askForMediaAccess("microphone");
}

// Show window when clicking on macosx dock icon
app.on('activate', () => {
Expand Down
1 change: 0 additions & 1 deletion src/utils/cssInjector.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = class Injector {
const result = sass.renderSync({data});
const styles = result.css.toString().replace(/;/g, ' !important;');
if (this.win) {
console.log(styles);
this.win.webContents.insertCSS(styles).then(key => {
this.styleKey = key;
});
Expand Down
1 change: 0 additions & 1 deletion src/utils/notificationShim.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ module.exports.notificationShim = function(appPath) {

// Automatically add a click handler, which notifies the main process when a click occurs.
oldNotification.addEventListener('click', () => {
console.log('clicked');
ipcRenderer.send('notification-clicked', {});
});

Expand Down

0 comments on commit e131f58

Please sign in to comment.