Skip to content

Commit

Permalink
Merge pull request #4 from Bartheyrman22/patch-1
Browse files Browse the repository at this point in the history
Added 'DIRECTORY_SEPARATOR ' To support multiple platforms.
  • Loading branch information
DaanDeSmedt authored Mar 2, 2018
2 parents 5ab0001 + 38a9461 commit 0750b42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HeadlessChrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function toPDF($PDFFilename = null){
$PDFFilename .= '.pdf';
}

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

$specific_arguments = [
Expand Down Expand Up @@ -272,7 +272,7 @@ public function toScreenShot($imageFilename = null) {
$imageFilename .= '.jpg';
}

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

$specific_arguments = [
Expand Down Expand Up @@ -347,4 +347,4 @@ public function getFilePath(){
return $this->filePath;
}

}
}

0 comments on commit 0750b42

Please sign in to comment.