diff --git a/Contents/Resources/web/js/plexauth.js b/Contents/Resources/web/js/plexauth.js index 54275898..992721b9 100644 --- a/Contents/Resources/web/js/plexauth.js +++ b/Contents/Resources/web/js/plexauth.js @@ -4,11 +4,11 @@ var p = { name: 'Unknown', version: 'Unknown', os: 'Unknown' -} +}; if (typeof platform !== 'undefined') { - p.name = platform.name - p.version = platform.version - p.os = platform.os.toString() + p.name = platform.name; + p.version = platform.version; + p.os = platform.os.toString(); } function getPlexHeaders(clientID) { @@ -24,16 +24,16 @@ function getPlexHeaders(clientID) { 'X-Plex-Device-Name': p.name + ' (Themerr)', 'X-Plex-Device-Screen-Resolution': window.screen.width + 'x' + window.screen.height, 'X-Plex-Language': 'en' - } + }; } function encodeData(data) { return Object.keys(data).map(function (key) { - return [key, data[key]].map(encodeURIComponent).join("=") - }).join("&") + return [key, data[key]].map(encodeURIComponent).join("="); + }).join("&"); } -var plex_oauth_window = null +var plex_oauth_window = null; const plex_oauth_loader = '