Add getPlexHeaders function

This commit is contained in:
JonnyWong16 2019-03-26 09:10:09 -07:00
parent 68df0f07c8
commit 766e33df0e
3 changed files with 16 additions and 10 deletions

View file

@ -2301,6 +2301,7 @@ $(document).ready(function() {
$("#token_verify").html('<i class="fa fa-refresh fa-spin"></i>').fadeIn('fast');
}
function OAuthSuccessCallback(authToken) {
var x_plex_headers = getPlexHeaders();
$("#pms_token").val(authToken);
$("#pms_uuid").val(x_plex_headers['X-Plex-Client-Identifier']);
$("#token_verify").html('<i class="fa fa-check"></i>').fadeIn('fast');