Overview
In the snipped below I get a parameter to the pickFolder() called defaultPath. pickFolder is in the electron render process. It is doing a remote call to utils.openFolder (in the main process) with a callback (I have tried arrow callbacks as well as function callbacks).
Issue
In the example below, I thought that directly binding the defaultPath to the callback function would make sure the value would arrive in the callback. As you can see on the screen, the local context does not have defaultPath, but the enclosing closure does. But the real issue (as seen in the red text at the bottom in the console, is that defaultPath cannot be found, even though I am at that break-point).
Any suggestions?
