We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4563773 commit d177c4aCopy full SHA for d177c4a
src/core/render-core.js
@@ -162,9 +162,9 @@ async function render(_opts = {}) {
162
if (clipContainsSomething) {
163
screenshotOpts.clip = opts.screenshot.clip;
164
}
165
- if(_.isNil(opts.screenshot.selector)) {
+ if (_.isNil(opts.screenshot.selector)) {
166
data = await page.screenshot(screenshotOpts);
167
- }else {
+ } else {
168
const selElement = await page.$(opts.screenshot.selector);
169
if (!_.isNull(selElement)) {
170
data = await selElement.screenshot();
0 commit comments