We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830adb5 commit 99439edCopy full SHA for 99439ed
src/Assets.php
@@ -106,6 +106,8 @@ public function addStyles($assets)
106
public function addStylesDirectly($assets)
107
{
108
foreach ((array)$assets as &$item) {
109
+ $item = ltrim(trim($item), '/');
110
+
111
if (!in_array($item, $this->appendedStyles)) {
112
$this->appendedStyles[$item] = [
113
'src' => $item,
@@ -127,6 +129,8 @@ public function addStylesDirectly($assets)
127
129
public function addScriptsDirectly($assets, $location = self::ASSETS_SCRIPT_POSITION_FOOTER)
128
130
131
132
133
134
if (!in_array($item, $this->appendedScripts[$location])) {
135
$this->appendedScripts[$location][$item] = [
136
0 commit comments