electron-run-in-browser
Run some js in a BrowserWindow
and get the result.
Usage
runInBrowser(win, func, cb)
win
:BrowserWindow
instance.func
: function. Serialized withtoString
so it needs to be self-contained.cb
: callback function, called with (err, result)
Example
const BrowserWindow = BrowserWindowconst runInBrowser = const win = winwebContents { return documenttitle}
License
MIT