Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix capturePage for Electron 2.0 #297

Merged
merged 2 commits into from
Jun 9, 2018
Merged

Fix capturePage for Electron 2.0 #297

merged 2 commits into from
Jun 9, 2018

Conversation

scottrippey
Copy link
Contributor

@scottrippey scottrippey commented Jun 6, 2018

In Electron 1.2.5, the toPng was changed to toPNG and deprecated. (electron/electron@e922258)
In Electron 2.0.0, the toPng was removed, and only toPNG exists now.

This PR ensures capturePage is compatible with Electron 2.0, but still works with Electron >= 1.2.5.

@ckerr
Copy link

ckerr commented Jun 9, 2018

The CI failures are unrelated and shouldn't block this PR.

The cause of the CI failures is tracked in #295

@ckerr ckerr merged commit c527b4e into electron-userland:master Jun 9, 2018
@scottrippey
Copy link
Contributor Author

Is there any way to get this published as 3.8.1?
I've upgraded my app to Electron 2.0, and this is holding that back. I've implemented a "patch" workaround, but I'd love to be able to remove that hack!

@sla89
Copy link

sla89 commented Jul 4, 2018

Same here. We have upgraded electron to 2.0.3 and have exactly the same issue.

@luciaam
Copy link

luciaam commented Jul 4, 2018

Facing the same issue afte the electron 2.0.3 upgrade in our project.
Agree with @scottrippey a 3.8.1 release would be great!

@faboweb
Copy link

faboweb commented Aug 23, 2018

What is the status on a 3.8.1 release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants