diff --git a/src/JavascriptRenderer.php b/src/JavascriptRenderer.php index 3593e569..ff14394c 100644 --- a/src/JavascriptRenderer.php +++ b/src/JavascriptRenderer.php @@ -37,20 +37,16 @@ public function setUrlGenerator($url) */ public function renderHead() { - $jsModified = $this->getModifiedTime('js'); - $cssModified = $this->getModifiedTime('css'); - - $html = ''; - $html .= sprintf( - '' . "\n", - route('debugbar.assets.css'), - $cssModified - ); - $html .= sprintf( - '' . "\n", - route('debugbar.assets.js'), - $jsModified - ); + $cssRoute = route('debugbar.assets.css', [ + 'v' => $this->getModifiedTime('css') + ]); + + $jsRoute = route('debugbar.assets.js', [ + 'v' => $this->getModifiedTime('js') + ]); + + $html = ""; + $html .= ""; if ($this->isJqueryNoConflictEnabled()) { $html .= '' . "\n";