Skip to content

Commit

Permalink
Merge pull request #144 from freema/patch-1
Browse files Browse the repository at this point in the history
Use script tag without type attribute
  • Loading branch information
EdaCZ committed Oct 19, 2020
2 parents 828741c + b414606 commit 8548c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebLoader/Nette/JavaScriptLoader.php
Expand Up @@ -20,7 +20,7 @@ class JavaScriptLoader extends WebLoader
*/
public function getElement($source)
{
return Html::el("script")->type("text/javascript")->src($source);
return Html::el("script")->src($source);
}

}
}

0 comments on commit 8548c0e

Please sign in to comment.