Skip to content

Commit

Permalink
prevent default type in script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lerni committed Oct 27, 2024
1 parent c1a51aa commit ea4ea6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Requirements_Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ public function includeInHTML($content)
foreach ($this->getJavascript() as $file => $attributes) {
// Build html attributes
$htmlAttributes = [
'type' => isset($attributes['type']) ? $attributes['type'] : "application/javascript",
'type' => isset($attributes['type']) ? $attributes['type'] : null,
'src' => $this->pathForFile($file),
];
if (!empty($attributes['async'])) {
Expand Down

0 comments on commit ea4ea6e

Please sign in to comment.