Skip to content

Commit

Permalink
Fix Custom Assets not loading because of wrong MIME type
Browse files Browse the repository at this point in the history
Closes #10
  • Loading branch information
Konafets committed Mar 8, 2018
1 parent 8b02280 commit b4b92d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/AssetsRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function renderHead()
$this->dumpJsAssets($this->pathToJsAssetFile);

$html = '';
$html .= "<link href='{$this->pathToCssAssetFile}' rel='stylesheet' type='text/css'>\n";
$html .= "<script src='{$this->pathToJsAssetFile}' type='text/javascript'></script>\n";
$html .= "<link href='/{$this->pathToCssAssetFile}' rel='stylesheet' type='text/css'>\n";
$html .= "<script src='/{$this->pathToJsAssetFile}' type='text/javascript'></script>\n";

if ($this->isJqueryNoConflictEnabled()) {
$html .= '<script type="text/javascript">jQuery.noConflict(true);</script>' . "\n";
Expand Down

0 comments on commit b4b92d4

Please sign in to comment.