Skip to content

Commit

Permalink
[auto commit] Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassiewertsen authored and github-actions[bot] committed Sep 9, 2024
1 parent cfe5981 commit be2b8b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Tags/Livewire.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function scriptConfig(): string
{
return \Livewire\Mechanisms\FrontendAssets\FrontendAssets::scriptConfig();
}

/**
* Antlers implementation of @assets - https://livewire.laravel.com/docs/javascript#loading-assets
*
Expand All @@ -95,17 +95,17 @@ public function scriptConfig(): string
public function assets(): void
{
$html = (string) $this->parse();

$key = md5($html);

if (in_array($key, \Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys)) {
// Skip it...
} else {
\Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys[] = $key;
\Livewire\store($this->context['__livewire'])->push('assets', $html, $key);
}
}

/**
* Antlers implementation of @script - https://livewire.laravel.com/docs/javascript#executing-scripts
*
Expand All @@ -114,9 +114,9 @@ public function assets(): void
public function script(): void
{
$html = trim((string) $this->parse());

$key = md5($html);

\Livewire\store($this->context['__livewire'])->push('scripts', $html, $key);
}
}

0 comments on commit be2b8b1

Please sign in to comment.