Merged with master
This commit is contained in:
commit
c495eab7b7
|
@ -72,6 +72,9 @@ Speedtest.prototype = {
|
||||||
if (this._state != 0)
|
if (this._state != 0)
|
||||||
throw "You cannot change the test settings after adding server or starting the test";
|
throw "You cannot change the test settings after adding server or starting the test";
|
||||||
this._settings[parameter] = value;
|
this._settings[parameter] = value;
|
||||||
|
if(parameter === "temeletry_extra"){
|
||||||
|
this._originalExtra=this._settings.telemetry_extra;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Used internally to check if a server object contains all the required elements.
|
* Used internally to check if a server object contains all the required elements.
|
||||||
|
@ -319,10 +322,10 @@ Speedtest.prototype = {
|
||||||
this._selectedServer.server + this._selectedServer.pingURL;
|
this._selectedServer.server + this._selectedServer.pingURL;
|
||||||
this._settings.url_getIp =
|
this._settings.url_getIp =
|
||||||
this._selectedServer.server + this._selectedServer.getIpURL;
|
this._selectedServer.server + this._selectedServer.getIpURL;
|
||||||
if (typeof this._settings.telemetry_extra !== "undefined") {
|
if (typeof this._originalExtra !== "undefined") {
|
||||||
this._settings.telemetry_extra = JSON.stringify({
|
this._settings.telemetry_extra = JSON.stringify({
|
||||||
server: this._selectedServer.name,
|
server: this._selectedServer.name,
|
||||||
extra: this._settings.telemetry_extra
|
extra: this._originalExtra
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
this._settings.telemetry_extra = JSON.stringify({
|
this._settings.telemetry_extra = JSON.stringify({
|
||||||
|
|
|
@ -249,6 +249,7 @@ this.addEventListener("message", function(e) {
|
||||||
}
|
}
|
||||||
if (params[0] === "abort") {
|
if (params[0] === "abort") {
|
||||||
// abort command
|
// abort command
|
||||||
|
if (testState >= 4) return;
|
||||||
tlog("manually aborted");
|
tlog("manually aborted");
|
||||||
clearRequests(); // stop all xhr activity
|
clearRequests(); // stop all xhr activity
|
||||||
runNextTest = null;
|
runNextTest = null;
|
||||||
|
|
Loading…
Reference in a new issue