removed sessionStorage from jsonrpc

This commit is contained in:
Akinwale Ariwodola 2018-03-10 08:06:22 +01:00
parent 1f42e6865b
commit c316f566a3

View file

@ -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 => {