Common components refactor #1
1 changed files with 1 additions and 4 deletions
|
@ -23,7 +23,6 @@ jsonrpc.call = (
|
|||
});
|
||||
}
|
||||
|
||||
const counter = parseInt(sessionStorage.getItem('JSONRPCCounter') || 0, 10);
|
||||
const url = connectionString;
|
||||
const options = {
|
||||
method: 'POST',
|
||||
|
@ -31,12 +30,10 @@ jsonrpc.call = (
|
|||
jsonrpc: '2.0',
|
||||
method,
|
||||
params,
|
||||
id: counter,
|
||||
id: new Date().getTime(),
|
||||
}),
|
||||
};
|
||||
|
||||
sessionStorage.setItem('JSONRPCCounter', counter + 1);
|
||||
|
||||
return fetch(url, options)
|
||||
.then(checkAndParse)
|
||||
.then(response => {
|
||||
|
|
Loading…
Add table
Reference in a new issue