Closed mimedo closed 3 years ago
I think it would be better to provide a second method which
I hope this solution works. I come more from a backend java world. Javascript is still "weird" for me :)
Please make a function where you can set the custom binary path or provide a function like yours, but without setting a global variable which could lead to problems like calling a wrong libreoffice binary if using multiple different binaries at the same time.
Extraced default paths as constants and added condition to check if customBinaryPaths are defined and if it's an array.
If parameter undefined, default path's are taken for further processing