FWeinb / electron-screenshot-service

Take screenshots using electron
MIT License
141 stars 26 forks source link

Pass cookies #29

Open bumbu opened 8 years ago

bumbu commented 8 years ago

Is there a way to pass page cookies? It could be done by tweaking electron-screenshot-app, but is there a better/simpler way?

rmariuzzo commented 7 years ago

I would love to contribute to this, if someone point me where too.

bumbu commented 7 years ago

I added support for cookies in this repo https://github.com/bumbu/website-screenshot (which is a modification of electron-screenshot-service).

You can see the specific commits that add support for cookies https://github.com/bumbu/website-screenshot/commits/master

That repo has no docs, but you can see how it's used in https://github.com/bumbu/website-visual-diff/blob/master/src/index.js