Skip to content

Commit

Permalink
Fix unable to use asset mapper with CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed May 29, 2023
1 parent 44c7677 commit 67a33c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/ImportMapRuntime.php
Expand Up @@ -22,8 +22,8 @@ public function __construct(private readonly ImportMapRenderer $importMapRendere
{
}

public function importmap(?string $entryPoint = 'app'): string
public function importmap(?string $entryPoint = 'app', array $attributes = []): string
{
return $this->importMapRenderer->render($entryPoint);
return $this->importMapRenderer->render($entryPoint, $attributes);
}
}

0 comments on commit 67a33c7

Please sign in to comment.