From 024ca7680049f45e1b96e8ce1c7522e9de884efe Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sat, 15 Jun 2019 09:16:11 -0700 Subject: [PATCH] Remove ES6 function declarations. --- js/main2.js | 2 +- js/main2e.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main2.js b/js/main2.js index 2b35260..9bf5f85 100644 --- a/js/main2.js +++ b/js/main2.js @@ -763,7 +763,7 @@ function _keydown(evt) { document.querySelector('#display > div').classList.toggle('flexbox-centering'); document.querySelector('#screen').classList.toggle('maxhw'); document.querySelector('#header').classList.toggle('hidden'); - document.querySelectorAll('.inset').forEach((el) => el.classList.toggle('hidden')); + document.querySelectorAll('.inset').forEach(function(el) { el.classList.toggle('hidden'); }); } else if (document.webkitCancelFullScreen) { if (document.webkitIsFullScreen) { document.webkitCancelFullScreen(); diff --git a/js/main2e.js b/js/main2e.js index ab97a6d..caa3518 100644 --- a/js/main2e.js +++ b/js/main2e.js @@ -730,7 +730,7 @@ function _keydown(evt) { document.querySelector('#display > div').classList.toggle('flexbox-centering'); document.querySelector('#screen').classList.toggle('maxhw'); document.querySelector('#header').classList.toggle('hidden'); - document.querySelectorAll('.inset').forEach((el) => el.classList.toggle('hidden')); + document.querySelectorAll('.inset').forEach(function(el) { el.classList.toggle('hidden'); }); document.querySelector('#reset').classList.toggle('hidden'); } else if (document.webkitCancelFullScreen) { if (document.webkitIsFullScreen) {