Skip to content

Commit

Permalink
Fix JS Error "joomla-hidden-mail" if Minify JS is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Dec 2, 2022
1 parent 82cad7d commit c0011d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/library/astroid/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function minifyJS($html)
// print_r($matches);
$script = [];
if (isset($matches[5]) && $matches[5] == '</script>' && !empty($matches[2])) {
if (strpos($matches[0], 'type="module"') > 0) {
if (strpos($matches[0], 'type="module"') > 0 || strpos($matches[0], 'media/system/js/joomla-hidden-mail-es5.min.js')) {
return $matches[0];
}
$script = ['content' => $this->beutifyURL($matches[2]), 'type' => 'url'];
Expand Down

0 comments on commit c0011d3

Please sign in to comment.