Set response ErrorCode as iError for easier fetch error handling

This commit is contained in:
djmaze 2021-03-18 12:33:13 +01:00
parent a46c0c3b21
commit 11fd6736bb
24 changed files with 145 additions and 253 deletions

View file

@ -33,11 +33,11 @@
this.saving(true);
rl.pluginRemoteRequest(function (iError, oData) {
rl.pluginRemoteRequest((iError, oData) => {
self.saving(false);
if (!iError && oData && oData.Result)
if (!iError)
{
// true
}
@ -61,11 +61,11 @@
this.loading(true);
rl.pluginRemoteRequest(function (iError, oData) {
rl.pluginRemoteRequest((iError, oData) => {
self.loading(false);
if (!iError && oData && oData.Result)
if (!iError)
{
self.userSkype(oData.Result.UserSkype || '');
self.userFacebook(oData.Result.UserFacebook || '');