Skip to content

Commit 0750b42

Browse files
authored
Merge pull request #4 from Bartheyrman22/patch-1
Added 'DIRECTORY_SEPARATOR ' To support multiple platforms.
2 parents 5ab0001 + 38a9461 commit 0750b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HeadlessChrome.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function toPDF($PDFFilename = null){
240240
$PDFFilename .= '.pdf';
241241
}
242242

243-
$location = $this->getOutputDirectory() . '\\' . $PDFFilename;
243+
$location = $this->getOutputDirectory() . DIRECTORY_SEPARATOR . $PDFFilename;
244244
$this->filePath = $location;
245245

246246
$specific_arguments = [
@@ -272,7 +272,7 @@ public function toScreenShot($imageFilename = null) {
272272
$imageFilename .= '.jpg';
273273
}
274274

275-
$location = $this->getOutputDirectory() . '\\' . $imageFilename;
275+
$location = $this->getOutputDirectory() . DIRECTORY_SEPARATOR . $imageFilename;
276276
$this->filePath = $location;
277277

278278
$specific_arguments = [
@@ -347,4 +347,4 @@ public function getFilePath(){
347347
return $this->filePath;
348348
}
349349

350-
}
350+
}

0 commit comments

Comments
 (0)