aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/twitter.js b/twitter.js
index 41a6f3b..c20c49a 100644
--- a/twitter.js
+++ b/twitter.js
@@ -1,5 +1,5 @@
// Vimperator plugin: "Update Twitter"
-// Last Change: 20-Oct-2008. Jan 2008
+// Last Change: 22-Oct-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
@@ -96,7 +96,7 @@
//xhr.open("POST", "http://twitter.com/statuses/user_timeline/otsune.json", false, username, password);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(null);
- var statuses = evalFunc(xhr.responseText);
+ var statuses = evalFunc(xhr.responseText) || [];
var html = <style type="text/css"><![CDATA[
span.twitter.entry-content a { text-decoration: none; }