Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Aug 16, 2024
1 parent 6a0a7c4 commit ef3710d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InjectAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __invoke(RequestHandled $handled)
$originalContent = $handled->response->original;

$handled->response->setContent(
$this->injectAssets($html, <<< HTML
$this->inject($html, <<< HTML
<!--[{$this->injector->identifier()} ASSETS]-->
{$this->injector->inject()}
<!--[END{$this->injector->identifier()}]-->
Expand All @@ -49,7 +49,7 @@ public function __invoke(RequestHandled $handled)
}

/** Injects assets into given html string (taken from Livewire's injection mechanism) */
protected function injectAssets(string $html, string $assets): string
protected function inject(string $html, string $assets): string
{
$html = str($html);

Expand Down

0 comments on commit ef3710d

Please sign in to comment.