From 194c73d5bb0b791504a315b861b868adca85a410 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Thu, 12 May 2022 22:44:17 -0400 Subject: [PATCH] style(core): use arrow function --- resources/skins.citizen.scripts/skin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.citizen.scripts/skin.js b/resources/skins.citizen.scripts/skin.js index 936c9900..bd880e5d 100644 --- a/resources/skins.citizen.scripts/skin.js +++ b/resources/skins.citizen.scripts/skin.js @@ -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 ) => {