aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.html8
-rw-r--r--js/main.js2
2 files changed, 6 insertions, 4 deletions
diff --git a/index.html b/index.html
index 7af4bf6..040965e 100644
--- a/index.html
+++ b/index.html
@@ -218,11 +218,13 @@
<!-- / WARNING BOX -->
<!-- PLEX AUTHENTICATION -->
<div id="pin-auth-over-container" class="row mt-4">
- <div id="new-pin-container" class="col pl-5 pr-5">
- <button id="loginWithPlexBtn" type="button" class="btn btn-secondary btn-lg btn-block" onclick="authenticateWithPlex()">Login with Plex</button>
+ <div id="new-pin-container" class="col">
+ <div class="pl-5 pr-5">
+ <button id="loginWithPlexBtn" type="button" class="btn btn-secondary btn-lg btn-block" onclick="authenticateWithPlex()">Login with Plex</button>
+ </div>
<div id="waitOnPinAuth" class="spinner-border spinner-border-lg text-warning" role="status" aria-hidden="true"></div>
</div>
- <div id="authed-pin-container">
+ <div id="authed-pin-container" class="col">
<p>You are logged in as: <strong id="loggedInAs"></strong>
<small id="forgetPinDetails">
<a href="javascript:void(0)" class="ml-2" onclick="forgetPinDetails()">Click here to logout.</a>
diff --git a/js/main.js b/js/main.js
index 2e741ea..c063c91 100644
--- a/js/main.js
+++ b/js/main.js
@@ -179,7 +179,7 @@ function authenticateWithPlex() {
function listenForValidPincode(pinId, clientId, pinCode) {
let currentTime = Date.now();
- if ((currentTime - backOffTimer)/1000 < 10) {
+ if ((currentTime - backOffTimer)/1000 < 180) {
$.ajax({
"url": `https://plex.tv/api/v2/pins/${pinId}`,
"headers": {