Skip to content

Commit

Permalink
Fixed atrocious typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfintel committed Aug 8, 2018
1 parent 0954c6a commit 02f29a7
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion example-chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion example-customSettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand Down
2 changes: 1 addition & 1 deletion example-customSettings2.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand Down
4 changes: 2 additions & 2 deletions example-gauges.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion example-pretty.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand Down
2 changes: 1 addition & 1 deletion example-progressBar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand Down
4 changes: 2 additions & 2 deletions example-telemetry-resultSharing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion example-telemetryEnabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="";
Expand Down
2 changes: 1 addition & 1 deletion speedtest_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion speedtest_worker.min.js

Large diffs are not rendered by default.

0 comments on commit 02f29a7

Please sign in to comment.