Don't use ES6 syntax
This commit is contained in:
parent
9ec890b306
commit
9a04d3481d
@ -57,7 +57,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
if (navigator.share) {
|
if (navigator.share) {
|
||||||
[...document.querySelectorAll('.share')].forEach(function(shareButton) {
|
[].slice.call(document.querySelectorAll('.share')).forEach(function(shareButton) {
|
||||||
shareButton.classList.add('show');
|
shareButton.classList.add('show');
|
||||||
shareButton.addEventListener('click', function(event) {
|
shareButton.addEventListener('click', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user