diff options
author | cglatot <[email protected]> | 2020-10-08 16:49:47 +0100 |
---|---|---|
committer | cglatot <[email protected]> | 2020-10-08 16:49:47 +0100 |
commit | 8251dd6d0dec4aae833e8134b8b4a235b648dacd (patch) | |
tree | 32cc404a268c9be471faa5cea4530f92f9e40491 | |
parent | e44b0d4e9174846af3fc36eb11277bf3f6c82e19 (diff) | |
download | pasta-1.5.1.tar.gz pasta-1.5.1.zip |
Style changes, increase timeout timer to 3 mins1.5.1
-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": { |