use let/const
This commit is contained in:
parent
8f372e6a6c
commit
deaff43f66
|
@ -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>');
|
||||||
|
|
Loading…
Reference in New Issue