From b9e08ad46a90918d5a972d3e349bd51de62db4a5 Mon Sep 17 00:00:00 2001 From: Tom Niget Date: Sun, 24 Dec 2023 01:56:52 +0100 Subject: [PATCH] style: semicolons --- Contents/Resources/web/js/plexauth.js | 120 ++++++++++---------- Contents/Resources/web/templates/login.html | 32 +++--- 2 files changed, 76 insertions(+), 76 deletions(-) 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 = '