Fixed: Twitter oAuth callback URL (#25)

Fixed: Twitter oAuth callback URL
This commit is contained in:
Qstick 2017-07-08 08:06:17 -04:00 committed by Joseph Milazzo
parent f1eb8a7d8d
commit f4006515a5
1 changed files with 2 additions and 1 deletions

View File

@ -91,8 +91,9 @@ var view = Marionette.ItemView.extend({
this.ui.indicator.show();
var self = this;
var callbackUrl = window.location.origin + window.NzbDrone.UrlBase + '/oauth.html';
var promise = this.model.requestAction('startOAuth', { callbackUrl: window.location.origin + '/oauth.html' })
var promise = this.model.requestAction('startOAuth', { callbackUrl: callbackUrl })
.then(function(response) {
return self._showOAuthWindow(response.oauthUrl);
})