Skip to content

Commit

Permalink
Merge pull request #1598 from adsabs/romanchyla-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler authored Sep 19, 2018
2 parents a469741 + 245471f commit fd42bf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/mixins/api_access.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ function (
getApiAccess: function (options) {
options = options || {};
var api = this.getBeeHive().getService('Api');
var redirect_uri = location.origin + location.pathname;
var self = this;
var defer = $.Deferred();

// if token expired, make a _request
var request = options.tokenRefresh ? '_request' : 'request';

api[request](new ApiRequest({
query: new ApiQuery({ redirect_uri: redirect_uri }),
query: new ApiQuery(),
target: this.bootstrapUrls ? this.bootstrapUrls[0] : '/accounts/bootstrap'
}),
{
Expand Down

0 comments on commit fd42bf3

Please sign in to comment.