diff options
-rw-r--r-- | index.html | 8 | ||||
-rw-r--r-- | js/main.js | 2 |
2 files changed, 6 insertions, 4 deletions
@@ -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> @@ -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": { |