Skip to content

Commit

Permalink
Merge pull request barryvdh#557 from ysugimoto/master
Browse files Browse the repository at this point in the history
css/js loaded at any protocol case
  • Loading branch information
barryvdh authored Oct 26, 2016
2 parents e353bc1 + 1e413cf commit b977458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/JavascriptRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public function renderHead()

$jsRoute = route('debugbar.assets.js', [
'v' => $this->getModifiedTime('js')
]);
]);

$cssRoute = preg_replace('/\Ahttps?:/', '', $cssRoute);
$jsRoute = preg_replace('/\Ahttps?:/', '', $jsRoute);

$html = "<link rel='stylesheet' type='text/css' property='stylesheet' href='{$cssRoute}'>";
$html .= "<script type='text/javascript' src='{$jsRoute}'></script>";
Expand Down

0 comments on commit b977458

Please sign in to comment.