brenden / node-webshot

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

end not emitted on OSX #184

Open ajouve opened 7 years ago

ajouve commented 7 years ago

Hi,

I am trying to run this code

webshot(<h1>Hi</h1>, {siteType: 'html', shotSize: {height: 'all'}}, (err, stream) => {
        stream.on('data', data => {
            console.log(data);
        })
        stream.on('end', () => {
            console.log('end');
        })
    });

But this is only working on unix and not osx any idea why ? On osx the console.log('end') is never called

xigongdaEricyang commented 5 years ago

me too