Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Update AssetInjection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner authored Aug 31, 2020
1 parent 9ddcc46 commit a885ad2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Http/Middleware/AssetInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function handle($request, Closure $next)
}

$castsScripts = '<script src="' . asset('genealabs-laravel-casts/app.js') . '"></script></body>';
$livewireScripts = (new LivewireManager)->scripts();
$livewireStyles = (new LivewireManager)->styles();

$html = (new HtmlPageCrawler)->create($content);

Expand All @@ -31,8 +29,6 @@ public function handle($request, Closure $next)
}

if ($html->filter("html > head")->count()) {
$html->filter("html > head")->append($livewireStyles);
$html->filter("html > body")->append($livewireScripts);
$html->filter("html > body")->append($castsScripts);
$content = $html->saveHTML();
}
Expand Down

0 comments on commit a885ad2

Please sign in to comment.