From 41979cb107a708fa58909baa98cc5cf9ff79e31b Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 2 Dec 2013 17:54:49 +0000 Subject: [PATCH] remove automatic refresh when 'account not activated' message or similar is shown in the past this was a common temporary issue with the intel site, so was worth having as a case in the code however, this is now very rare, and the more likely reason is an account suspension/ban - and a refresh won't help here! --- main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 4aa3c61e..b704b05e 100644 --- a/main.js +++ b/main.js @@ -39,8 +39,11 @@ if(!d) { // page doesn’t have a script tag with player information. if(document.getElementById('header_email')) { // however, we are logged in. - setTimeout('location.reload();', 3*1000); - throw("Page doesn't have player data, but you are logged in. Reloading in 3s."); + // it used to be regularly common to get temporary 'account not enabled' messages from the intel site. + // however, this is no longer common. more common is users getting account suspended/banned - and this + // currently shows the 'not enabled' message. so it's safer to not repeatedly reload in this case +// setTimeout('location.reload();', 3*1000); + throw("Page doesn't have player data, but you are logged in."); } // FIXME: handle nia takedown in progress throw("Couldn't retrieve player data. Are you logged in?");