From: David ‘Bombe’ Roden Date: Fri, 31 Dec 2010 10:15:29 +0000 (+0100) Subject: Only poll for status if a page ID is actually defined. X-Git-Tag: beta-freefall-0.6.2-1~162 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=46bbcdbc69ed6c86f62cc9c3430404c8461924e0;p=Sone.git Only poll for status if a page ID is actually defined. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index fe2e12d..803774a 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -954,7 +954,7 @@ $(document).ready(function() { }); /* activate status polling. */ - if (getPageId() != "login") { + if ((getPageId() != undefined) && (getPageId() != "login")) { setTimeout(getStatus, 5000); }