From 41ac21f08847573884ec5c73c2c4d5af6c310d29 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 25 Nov 2013 06:37:24 +0400 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui/data.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/data.js b/ui/data.js index eadcddb1..d591f184 100755 --- a/ui/data.js +++ b/ui/data.js @@ -1621,11 +1621,11 @@ function setupBaseURLHistory(){ .on('baseURLChanged', function(evt, old_url, new_url){ if(BASE_URL_HISTORY.indexOf(old_url) < 0){ BASE_URL_HISTORY.splice(0, 0, old_url) - } - // truncate the history if needed... - if(BASE_URL_HISTORY.length > BASE_URL_LIMIT){ - BASE_URL_HISTORY.splice(BASE_URL_LIMIT, BASE_URL_HISTORY.length) + // truncate the history if needed... + if(BASE_URL_HISTORY.length > BASE_URL_LIMIT){ + BASE_URL_HISTORY.splice(BASE_URL_LIMIT, BASE_URL_HISTORY.length) + } } }) }