Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Issue 202 - Can't send data from PhantomJS to any callback under Node… #203

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ var PhantomJSBrowser = function (baseBrowserDecorator, config, args, logger) {

this._process.stdout.on('data', function (data) {
log.debug('' + data)
if (typeof options.onBrowserLogNodeContext === 'function') {
options.onBrowserLogNodeContext(data)
}
})

if (args.debug) {
Expand Down