Skip to content

Commit

Permalink
Fix #1575 assets not loading (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Mar 24, 2024
1 parent 03448e5 commit d861099
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/JavascriptRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ public function setUrlGenerator($url)
*/
public function renderHead()
{
$cssRoute = route('debugbar.assets.css', [
$cssRoute = preg_replace('/\Ahttps?:\/\/[^\/]+/', '', route('debugbar.assets.css', [
'v' => $this->getModifiedTime('css'),
'theme' => config('debugbar.theme', 'auto'),
], false);
]));

$jsRoute = route('debugbar.assets.js', [
$jsRoute = preg_replace('/\Ahttps?:\/\/[^\/]+/', '', route('debugbar.assets.js', [
'v' => $this->getModifiedTime('js')
], false);
]));

$nonce = $this->getNonceAttribute();

Expand Down

0 comments on commit d861099

Please sign in to comment.