aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcglatot <[email protected]>2020-10-08 16:49:47 +0100
committercglatot <[email protected]>2020-10-08 16:49:47 +0100
commit8251dd6d0dec4aae833e8134b8b4a235b648dacd (patch)
tree32cc404a268c9be471faa5cea4530f92f9e40491
parente44b0d4e9174846af3fc36eb11277bf3f6c82e19 (diff)
downloadpasta-8251dd6d0dec4aae833e8134b8b4a235b648dacd.tar.gz
pasta-8251dd6d0dec4aae833e8134b8b4a235b648dacd.zip
Style changes, increase timeout timer to 3 mins1.5.1
-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": {