removed sessionStorage from jsonrpc
This commit is contained in:
parent
c316f566a3
commit
5901b8d4af
1 changed files with 1 additions and 4 deletions
|
@ -2926,7 +2926,6 @@ jsonrpc.call = function (connectionString, method, params, callback, errorCallba
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var counter = parseInt(sessionStorage.getItem('JSONRPCCounter') || 0, 10);
|
|
||||||
var url = connectionString;
|
var url = connectionString;
|
||||||
var options = {
|
var options = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
@ -2934,12 +2933,10 @@ jsonrpc.call = function (connectionString, method, params, callback, errorCallba
|
||||||
jsonrpc: '2.0',
|
jsonrpc: '2.0',
|
||||||
method: method,
|
method: method,
|
||||||
params: params,
|
params: params,
|
||||||
id: counter
|
id: new Date().getTime()
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
sessionStorage.setItem('JSONRPCCounter', counter + 1);
|
|
||||||
|
|
||||||
return fetch(url, options).then(checkAndParse).then(function (response) {
|
return fetch(url, options).then(checkAndParse).then(function (response) {
|
||||||
var error = response.error || response.result && response.result.error;
|
var error = response.error || response.result && response.result.error;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue