Skip to content

Commit 132f445

Browse files
committed
updates
1 parent c25a223 commit 132f445

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/screenshotbase/actions/take-screenshot/take-screenshot.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ export default {
7575
url: this.url,
7676
format: this.format,
7777
quality: this.quality,
78-
full_page: this.fullPage,
78+
full_page: this.fullPage
79+
? 1
80+
: undefined,
7981
viewport_width: this.viewportWidth,
8082
viewport_height: this.viewportHeight,
8183
},
@@ -92,7 +94,7 @@ export default {
9294
$.export("$summary", `Successfully took the screenshot from ${this.url}`);
9395
return filedata;
9496
} catch (error) {
95-
throw new Error(`Unable to take screenshot from ${this.url}: ${error.message}`);
97+
throw new Error(`Unable to take screenshot from ${this.url}: ${error.name}`);
9698
}
9799
},
98100
};

components/screenshotbase/screenshotbase.app.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default {
2020
description: "The format of the image returned",
2121
options: [
2222
"jpg",
23-
"jpeg",
2423
"png",
2524
"webp",
2625
],

0 commit comments

Comments
 (0)