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.
2 parents 5ab0001 + 38a9461 commit 0750b42Copy full SHA for 0750b42
src/HeadlessChrome.php
@@ -240,7 +240,7 @@ public function toPDF($PDFFilename = null){
240
$PDFFilename .= '.pdf';
241
}
242
243
- $location = $this->getOutputDirectory() . '\\' . $PDFFilename;
+ $location = $this->getOutputDirectory() . DIRECTORY_SEPARATOR . $PDFFilename;
244
$this->filePath = $location;
245
246
$specific_arguments = [
@@ -272,7 +272,7 @@ public function toScreenShot($imageFilename = null) {
272
$imageFilename .= '.jpg';
273
274
275
- $location = $this->getOutputDirectory() . '\\' . $imageFilename;
+ $location = $this->getOutputDirectory() . DIRECTORY_SEPARATOR . $imageFilename;
276
277
278
@@ -347,4 +347,4 @@ public function getFilePath(){
347
return $this->filePath;
348
349
350
-}
+}
0 commit comments