Skip to content

Commit

Permalink
fix issue #230 (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidromani authored Aug 9, 2024
1 parent a7d00ca commit a699a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CachingStrategy/AssetCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function getAssets(): array
{
$assets = [];
foreach ($this->assetMapper->allAssets() as $asset) {
if (preg_match($this->workbox->assetCache->regex, $asset->sourcePath) === 1) {
if (preg_match($this->workbox->assetCache->regex, $asset->publicPath) === 1) {
$assets[] = $asset->publicPath;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/CachingStrategy/FontCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function getFonts(): array
{
$fonts = [];
foreach ($this->assetMapper->allAssets() as $asset) {
if (preg_match($this->workbox->fontCache->regex, $asset->sourcePath) === 1) {
if (preg_match($this->workbox->fontCache->regex, $asset->publicPath) === 1) {
$fonts[] = $asset->publicPath;
}
}
Expand Down

0 comments on commit a699a9e

Please sign in to comment.