Skip to content

Commit

Permalink
Add assets type for path holder
Browse files Browse the repository at this point in the history
  • Loading branch information
carry0987 committed Jul 29, 2024
1 parent 72b0195 commit 4663ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function loadCSSFile(string $file)

//Modify path
if ($this->path_holder !== null) {
$file = call_user_func($this->path_holder, $file);
$file = call_user_func($this->path_holder, $file, 'css');
}

return $file.'?v='.$css_version_check['verhash'];
Expand Down Expand Up @@ -437,7 +437,7 @@ public function loadJSFile(string $file)

//Modify path
if ($this->path_holder !== null) {
$file = call_user_func($this->path_holder, $file);
$file = call_user_func($this->path_holder, $file, 'js');
}

return $file.'?v='.$js_version_check['verhash'];
Expand Down

0 comments on commit 4663ccb

Please sign in to comment.