Skip to content

Commit

Permalink
fix issues about loading bookmarks saved before introduction of query…
Browse files Browse the repository at this point in the history
…string and authentication
  • Loading branch information
mirkoperillo committed Mar 22, 2018
1 parent deb7974 commit 8ee6ec7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,17 @@ requirejs(['jquery','app/storage','knockout','knockout-secure-binding','hjls','a
Resting.requestUrl(req.url);
Resting.bodyType(req.bodyType);
Resting.requestHeaders(req.headers);
Resting.querystring(req.querystring);
Resting.querystring(req.querystring ? req.querystring : []);
_updateAuthentication(req.authentication);
updateBody(req.bodyType, req.body);
};

const _updateAuthentication = authentication => {
Resting.authenticationType(authentication.type);
Resting.username(authentication.username);
Resting.password(authentication.password);
if(authentication) {
Resting.authenticationType(authentication.type);
Resting.username(authentication.username);
Resting.password(authentication.password);
}
};

const dataToSend = () => {
Expand Down

0 comments on commit 8ee6ec7

Please sign in to comment.