Skip to content

Commit

Permalink
fix(App): Fix Windows & Linux issue where a module error crashed the …
Browse files Browse the repository at this point in the history
…app on startup
  • Loading branch information
adlk committed Nov 17, 2020
1 parent bef3aec commit 87c1388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/electron/macOSPermissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {

let askForScreenCaptureAccess = () => null;

// We need to use this workaround to only require this module on macOS as an "this module did not self register" error is thrown
if (isMac) {
// eslint-disable-next-line global-require
({ askForScreenCaptureAccess } = require('node-mac-permissions'));
Expand Down

0 comments on commit 87c1388

Please sign in to comment.