File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
components/screenshotbase Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments