From b98dd31d05cc5fcbd90598c0809d7eca7b0575e4 Mon Sep 17 00:00:00 2001 From: GMFlash Date: Mon, 7 Apr 2014 12:57:42 -0400 Subject: [PATCH] Fix ReferenceError: Can't find variable: algos --- website/static/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/static/main.js b/website/static/main.js index 6c94769..ebb149c 100644 --- a/website/static/main.js +++ b/website/static/main.js @@ -28,9 +28,9 @@ $(function(){ var statsSource = new EventSource("/api/live_stats"); statsSource.addEventListener('message', function(e){ var stats = JSON.parse(e.data); - for (algo in algos) { - $('#statsMiners'+algo).text(stats.algos[algo].workers); - $('#statsHashrate'+algo).text(stats.algos[algo].hashrateString); + for (algo in stats.algos) { + $('#statsMiners'+algo).text(stats.algos[algo].workers); + $('#statsHashrate'+algo).text(stats.algos[algo].hashrateString); } });