mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-13 01:56:58 -07:00
Remove trailing slash from Facebook redirect URI
This commit is contained in:
parent
36de20dd75
commit
ee754ea533
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ from plexpy import helpers
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#facebookStep1').click(function () {
|
$('#facebookStep1').click(function () {
|
||||||
|
// Remove trailing '/' from Facebook redirect URI
|
||||||
|
if ($('#facebook_redirect_uri') && $('#facebook_redirect_uri').val().endsWith('/')) {
|
||||||
|
$('#facebook_redirect_uri').val($('#facebook_redirect_uri').val().slice(0, -1));
|
||||||
|
}
|
||||||
doAjaxCall('set_notification_config', $(this), 'tabs', true);
|
doAjaxCall('set_notification_config', $(this), 'tabs', true);
|
||||||
$.get('facebookStep1', function (data) { window.open(data); })
|
$.get('facebookStep1', function (data) { window.open(data); })
|
||||||
.done(function () { showMsg('<i class="fa fa-check"></i> Confirm Authorization. Check pop-up blocker if no response.', false, true, 3000); });
|
.done(function () { showMsg('<i class="fa fa-check"></i> Confirm Authorization. Check pop-up blocker if no response.', false, true, 3000); });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue