Skip to content

Commit 67a33c7

Browse files
committed
Fix unable to use asset mapper with CSP
1 parent 44c7677 commit 67a33c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/ImportMapRuntime.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public function __construct(private readonly ImportMapRenderer $importMapRendere
2222
{
2323
}
2424

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

0 commit comments

Comments
 (0)