Skip to content

Commit

Permalink
Merge pull request #105 from kivudesign/version_boss
Browse files Browse the repository at this point in the history
[FIX] missing valid js file location.
  • Loading branch information
bim-g committed Aug 2, 2023
2 parents 4fad3cb + 256f259 commit a09c78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public static function getHeaderJS()
*/
static function insertJS(string $file,bool $is_module = false, bool $not_void=false)
{
if (is_file(ROOT . 'asset/js/' . $file . '.js')) {
$src = WEB_ROOT . "asset/js/$file.js";
if (is_file(ROOT . 'assets/js/' . $file . '.js')) {
$src = WEB_ROOT . "assets/js/$file.js";
$type = $is_module ? 'type="module"' : '';
$link = <<<EOF
<script src="$src" $type></script>
Expand Down

0 comments on commit a09c78f

Please sign in to comment.