automation-stack / electron-sudo

Electron subprocesses with administrative privileges, prompting the user with an OS dialog if necessary.
MIT License
382 stars 55 forks source link

Fix `u.sent.filter is not a function` #36

Closed facekapow closed 7 years ago

facekapow commented 7 years ago

When I try to spawn a program with the current code on Ubuntu, it throws up an error saying "Unhandled rejection TypeError: u.sent.filter is not a function". Checking the code, I can trace it back to line 328 of src/lib/sudoer.js. The problem appears to be that code was left behind after adding it to the getBinary function. This PR fixes it by removing the code left behind.

automation-stack commented 7 years ago

@facekapow thanks, published 4.0.12