From deaff43f6630e74b90f1a6b957298d8d27102907 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 7 Jan 2022 16:22:24 -0500 Subject: [PATCH] use let/const --- web/skins/classic/views/js/frame.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/views/js/frame.js b/web/skins/classic/views/js/frame.js index 1040d5a48..6786412f9 100644 --- a/web/skins/classic/views/js/frame.js +++ b/web/skins/classic/views/js/frame.js @@ -40,8 +40,8 @@ function changeScale() { } function getFrameStatsCookie() { - var cookie = 'zmFrameStats'; - var stats = getCookie(cookie); + const cookie = 'zmFrameStats'; + let stats = getCookie(cookie); if (!stats) { stats = 'on'; @@ -53,7 +53,7 @@ function getFrameStatsCookie() { function getStat(params) { $j.getJSON(thisUrl + '?view=request&request=stats&raw=true', params) .done(function(data) { - var stats = data.raw; + const stats = data.raw; $j('#frameStatsTable').empty().append('');