Test settings can now be changed while in state 4 and not just state 0
This commit is contained in:
parent
72cccd0619
commit
c6a36e68c4
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ Speedtest.prototype = {
|
||||||
* Invalid values or nonexistant parameters will be ignored by the speedtest worker.
|
* Invalid values or nonexistant parameters will be ignored by the speedtest worker.
|
||||||
*/
|
*/
|
||||||
setParameter: function(parameter, value) {
|
setParameter: function(parameter, value) {
|
||||||
if (this._state != 0)
|
if (this._state != 0 && this._state != 4)
|
||||||
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 === "telemetry_extra"){
|
if(parameter === "telemetry_extra"){
|
||||||
|
|
Loading…
Reference in a new issue