use let/const

This commit is contained in:
Isaac Connor 2022-01-07 16:22:24 -05:00
parent 8f372e6a6c
commit deaff43f66
1 changed files with 3 additions and 3 deletions

View File

@ -40,8 +40,8 @@ function changeScale() {
} }
function getFrameStatsCookie() { function getFrameStatsCookie() {
var cookie = 'zmFrameStats'; const cookie = 'zmFrameStats';
var stats = getCookie(cookie); let stats = getCookie(cookie);
if (!stats) { if (!stats) {
stats = 'on'; stats = 'on';
@ -53,7 +53,7 @@ function getFrameStatsCookie() {
function getStat(params) { function getStat(params) {
$j.getJSON(thisUrl + '?view=request&request=stats&raw=true', params) $j.getJSON(thisUrl + '?view=request&request=stats&raw=true', params)
.done(function(data) { .done(function(data) {
var stats = data.raw; const stats = data.raw;
$j('#frameStatsTable').empty().append('<tbody>'); $j('#frameStatsTable').empty().append('<tbody>');