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 5901b8d4af - Show all commits

View file

@ -2926,7 +2926,6 @@ jsonrpc.call = function (connectionString, method, params, callback, errorCallba
});
}
var counter = parseInt(sessionStorage.getItem('JSONRPCCounter') || 0, 10);
var url = connectionString;
var options = {
method: 'POST',
@ -2934,12 +2933,10 @@ jsonrpc.call = function (connectionString, method, params, callback, errorCallba
jsonrpc: '2.0',
method: method,
params: params,
id: counter
id: new Date().getTime()
})
};
sessionStorage.setItem('JSONRPCCounter', counter + 1);
return fetch(url, options).then(checkAndParse).then(function (response) {
var error = response.error || response.result && response.result.error;