brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 285 forks source link

console.log is now working + access to phantomJS reference variable #144

Closed mfds closed 5 years ago

mfds commented 8 years ago

When putting the 'onConsoleMessage' callback on the options object your 'console.log' calls will be injected in the right place

rubenstolk commented 8 years ago

Simply providing:

onConsoleMessage: {
  fn: function (msg) {
    console.log('CONSOLE', msg);
  }
}

in options still doesn't seem to work...