Fixed: Twitter oAuth callback URL

This commit is contained in:
Mark McDowall 2017-06-05 20:22:37 -07:00
parent 416e9abca5
commit d7cb5090fc
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0
1 changed files with 3 additions and 2 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);
})