Skip to content

Commit cd0715f

Browse files
committed
Fix large pdf generation #6
1 parent efd2e91 commit cd0715f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/browser.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getOutput = async (request, page = null) => {
5656
if (page) {
5757
return JSON.stringify(output);
5858
}
59-
59+
6060
// this will allow adding additional error info (only reach this point when there's an exception)
6161
return output;
6262
};

src/Browsershot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function waitForFunction(string $function, ?Polling $polling = null, int
244244
return $this->setOption('function', $function);
245245
}
246246

247-
public function waitForSelector(string $selector, array $options = [])
247+
public function waitForSelector(string $selector, array $options = []): static
248248
{
249249
$this->setOption('waitForSelector', $selector);
250250

0 commit comments

Comments
 (0)