25 lines
791 B
JavaScript
25 lines
791 B
JavaScript
var token = 0;
|
|
|
|
devsim.request("config:set", 1, function() {
|
|
if (this.Params == undefined) { throw("this.Params == undefined"); }
|
|
if (this.Params["uid"] != 1) { throw('this.Params["uid"] != 1'); }
|
|
if (this.Params.uid != 1) { throw('this.Params.uid != 1'); }
|
|
if (this.Params["value"] != 1337) { throw('this.Params["value"] != 1337'); }
|
|
if (this.Params.value != 1337) { throw('this.Params.value != 1337'); }
|
|
|
|
token = this.Params.value;
|
|
|
|
return this;
|
|
});
|
|
|
|
devsim.request("config:get", 1, function() {
|
|
if (this.Params == undefined) { throw("this.Params == undefined"); }
|
|
if (this.Params["uid"] != 1) { throw('this.Params["uid"] != 1'); }
|
|
if (this.Params.uid != 1) { throw('this.Params.uid != 1'); }
|
|
|
|
this.Result.uid = this.Params.uid;
|
|
this.Result.value = token;
|
|
|
|
return this;
|
|
});
|