Permalink
Browse files

Fixed atrocious typo

  • Loading branch information...
adolfintel committed Aug 8, 2018
1 parent 0954c6a commit 02f29a76ff76ab62d41096f1b68dc32e8055e3ac
View
@@ -201,7 +201,7 @@
var interval = setInterval(function () { w.postMessage('status') }, 100)
w.onmessage = function (event) {
var data = JSON.parse(event.data)
var status = data.testStatus
var status = data.testState
if (status >= 4) {
clearInterval(interval)
document.getElementById('abortBtn').style.display = 'none'
@@ -132,7 +132,7 @@
I("startStopBtn").className="running";
w.onmessage=function(e){
var data=JSON.parse(e.data);
var status=data.testStatus;
var status=data.testState;
if(status>=4){
//test completed
I("startStopBtn").className="";
@@ -126,7 +126,7 @@
I("startStopBtn").className="running";
w.onmessage=function(e){
var data=JSON.parse(e.data);
var status=data.testStatus;
var status=data.testState;
if(status>=4){
//test completed
I("startStopBtn").className="";
View
@@ -164,7 +164,7 @@
I("startStopBtn").className="running";
w.onmessage=function(e){
data=JSON.parse(e.data);
var status=data.testStatus;
var status=data.testState;
if(status>=4){
//test completed
I("startStopBtn").className="";
@@ -177,7 +177,7 @@
//this function reads the data sent back by the worker and updates the UI
function updateUI(forced){
if(!forced&&(!data||!w)) return;
var status=data.testStatus;
var status=data.testState;
I("ip").textContent=data.clientIp;
I("dlText").textContent=(status==1&&data.dlStatus==0)?"...":data.dlStatus;
drawMeter(I("dlMeter"),mbpsToAmount(Number(data.dlStatus*(status==1?oscillate():1))),meterBk,dlColor,Number(data.dlProgress),progColor);
View
@@ -126,7 +126,7 @@
I("startStopBtn").className="running";
w.onmessage=function(e){
var data=JSON.parse(e.data);
var status=data.testStatus;
var status=data.testState;
if(status>=4){
//test completed
I("startStopBtn").className="";
View
@@ -144,7 +144,7 @@
I("startStopBtn").className="running";
w.onmessage=function(e){
var data=JSON.parse(e.data);
var status=data.testStatus;
var status=data.testState;
if(status>=4){
//test completed
I("startStopBtn").className="";
@@ -181,7 +181,7 @@
I("shareArea").style.display="none";
w.onmessage=function(e){
data=JSON.parse(e.data);
var status=data.testStatus;
var status=data.testState;
if(status>=4){
//test completed
I("startStopBtn").className="";
@@ -207,7 +207,7 @@
//this function reads the data sent back by the worker and updates the UI
function updateUI(forced){
if(!forced&&(!data||!w)) return;
var status=data.testStatus;
var status=data.testState;
I("ip").textContent=data.clientIp;
I("dlText").textContent=(status==1&&data.dlStatus==0)?"...":data.dlStatus;
drawMeter(I("dlMeter"),mbpsToAmount(Number(data.dlStatus*(status==1?oscillate():1))),meterBk,dlColor,Number(data.dlProgress),progColor);
@@ -126,7 +126,7 @@
I("startStopBtn").className="running";
w.onmessage=function(e){
var data=JSON.parse(e.data);
var status=data.testStatus
var status=data.testState
if(status>=4){
//test completed
I("startStopBtn").className="";
View
@@ -72,7 +72,7 @@ this.addEventListener('message', function (e) {
var params = e.data.split(' ')
if (params[0] === 'status') { // return status
postMessage(JSON.stringify({
testStatus:testStatus,
testState:testStatus,
dlStatus:dlStatus,
ulStatus:ulStatus,
pingStatus:pingStatus,
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 02f29a7

Please sign in to comment.