We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NWJS Version : 0.49.0 Operating System : Windows 10
I recently tried upgrading my app from v0.28 to v0.49. In this app I open a second window behind the main window to do some capture.
capturePage should capture content of the window it's called from.
capturePage captures content from the main window even it's called from the new one. It works as before if NW2 is disabled with --disable-features=nw2
Have two html files:
require("nw.gui").Window.open("new.html", {}, (wnd) => { wnd.on("loaded", (e) => { wnd.capturePage(buffer => { require('fs').writeFile('screenshot.png', buffer, (err) => { if (err) throw err; }); }, { format: 'png', datatype: 'buffer' }); }); });
The text was updated successfully, but these errors were encountered:
663cde0
This is fixed in git and will be available in the next nightly build.
Sorry, something went wrong.
CC #7230
No branches or pull requests
NWJS Version : 0.49.0
Operating System : Windows 10
I recently tried upgrading my app from v0.28 to v0.49.
In this app I open a second window behind the main window to do some capture.
Expected behavior
capturePage should capture content of the window it's called from.
Actual behavior
capturePage captures content from the main window even it's called from the new one.
It works as before if NW2 is disabled with --disable-features=nw2
How to reproduce
Have two html files:
The text was updated successfully, but these errors were encountered: