Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Dec 28, 2019
2 parents 6b0ff3d + 967f4d6 commit d08597f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Asset.php
Expand Up @@ -117,7 +117,7 @@ public function add(
$attributes = [],
$replaces = []
) {
$type = (\pathinfo($source, PATHINFO_EXTENSION) == 'css') ? 'style' : 'script';
$type = (\strpos(\pathinfo($source, PATHINFO_EXTENSION), 'css') === 0) ? 'style' : 'script';

return $this->$type($name, $source, $dependencies, $attributes, $replaces);
}
Expand Down

0 comments on commit d08597f

Please sign in to comment.