These are chat archives for rosshinkley/nightmare

Sep 2016
Rob Brackett
Sep 02 2016 22:06
@benjick if you just want to know the details of what loaded and not prevent things from loading (or redirect them or otherwise affect how they are loaded) you can just use the did-get-response-details event:
  .on('did-get-response-details', function (event, socketStatus, url, originalUrl, code, method, referrer, headers, type) {
    console.log('  url:', url);
    console.log('  originalUrl:', originalUrl);
    console.log('  code:', code);
    console.log('  method:', method);
    console.log('  referrer:', referrer);
    console.log('  type:', type);
For the page itself, the type argument will be "mainFrame", so you know to ignore that one
Ross Hinkley
Sep 02 2016 22:09
ah right
forgot about response details
Ross Hinkley
Sep 02 2016 22:16
price i pay for not actually looking at the docs... thanks @Mr0grog :)