Skip to content

Commit

Permalink
Fix script error in IE 11 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Floxn authored May 13, 2020
1 parent 058d058 commit 6cc85e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/templates/mmenu_default.html5
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if ($this->options['drag']['menu']['open']) {
?>
<script>
document.addEventListener(
"DOMContentLoaded", () => {
"DOMContentLoaded", function () {
new Mmenu('#<?= $this->elementId ?>', <?= json_encode($this->options) ?>, <?= json_encode($this->configuration) ?>);
},
}
);
</script>

0 comments on commit 6cc85e5

Please sign in to comment.