style(core): use arrow function

This commit is contained in:
alistair3149 2022-05-12 22:44:17 -04:00
parent 5ff7b4cf90
commit 194c73d5bb
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -47,7 +47,7 @@ function bind() {
* Based on Vector
*/
function bindCloseOnUnload() {
addEventListener( 'beforeunload', function () {
addEventListener( 'beforeunload', () => {
const checkboxes = document.querySelectorAll( CHECKBOX_HACK_CHECKBOX_SELECTOR + ':checked' );
checkboxes.forEach( ( checkbox ) => {