Don't use ES6 syntax

This commit is contained in:
Marcus Noble 2017-10-17 06:46:42 +01:00
parent 9ec890b306
commit 9a04d3481d
1 changed files with 1 additions and 1 deletions

View File

@ -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();