mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
fix(swipe): Ignore err, since stdout = '' is an expected case
This commit is contained in:
parent
7d05523b0f
commit
91c05d5ab2
1 changed files with 0 additions and 3 deletions
|
@ -35,9 +35,6 @@ let SwipeInverted = false;
|
|||
|
||||
if (process.platform === 'darwin') {
|
||||
exec("defaults read -g com.apple.swipescrolldirection", (err, stdout)=> {
|
||||
if (err !== null) {
|
||||
return;
|
||||
}
|
||||
SwipeInverted = (stdout.toString().trim() !== '0');
|
||||
});
|
||||
} else if (process.platform === 'win32') {
|
||||
|
|
Loading…
Reference in a new issue