From 831a3c1b5af90d8b5d9b875edd4bc5bb585b9ac9 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 14 Nov 2019 14:59:44 -0500 Subject: [PATCH] Increased retry timeout when the server is down. --- content.js | 3 ++- manifest.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/content.js b/content.js index 1e79619a..276c93c9 100644 --- a/content.js +++ b/content.js @@ -430,8 +430,9 @@ function sponsorsLookup(id, channelIDPromise) { } else if (xmlhttp.readyState == 4 && sponsorLookupRetries < 90 && !recheckStarted) { recheckStarted = true; + //TODO lower when server becomes better (back to 1 second) //some error occurred, try again in a second - setTimeout(() => sponsorsLookup(id), 1000); + setTimeout(() => sponsorsLookup(id), 10000); sponsorLookupRetries++; } diff --git a/manifest.json b/manifest.json index 41afd05d..7ba848f2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.1.9.2", + "version": "1.1.9.3", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [