From 8595bf02958961027fa525cf8005ff826ee906f3 Mon Sep 17 00:00:00 2001 From: NumEricR <-> Date: Sun, 10 Apr 2011 19:36:41 +0200 Subject: [PATCH] Add test on blog value to prevent handling an empty string --- js/githubresume.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/githubresume.js b/js/githubresume.js index 9100784..04ea3de 100644 --- a/js/githubresume.js +++ b/js/githubresume.js @@ -90,7 +90,7 @@ var run = function() { since: since }; - if (data.user.blog !== undefined && data.user.blog !== null) { + if (data.user.blog !== undefined && data.user.blog !== null && data.user.blog !== '') { view.blog = addHttp + data.user.blog; }