Common components refactor #1

Merged
akinwale merged 42 commits from common-components-refactor into master 2018-04-05 04:57:30 +02:00
Showing only changes of commit c316f566a3 - Show all commits

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