Skip to content

Commit

Permalink
Refrain from using arrow function
Browse files Browse the repository at this point in the history
The arrow function is widely supported and was introduced in ES6, they
can not yet be used safely as IE11/EDGE do not support them.

https://caniuse.com/#search=%3D%3E
  • Loading branch information
MKodde committed Mar 14, 2019
1 parent 77f14f2 commit e2c5009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpBundle/Resources/views/default/sp.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script>
jQuery('#locale-cookie').on('change', (input) => {
jQuery('#locale-cookie').on('change', function (input) {
Cookies.set('stepup_locale', input.target.value);
});
</script>
Expand Down

0 comments on commit e2c5009

Please sign in to comment.