diff options
author | anekos | 2011-07-04 00:36:24 +0900 |
---|---|---|
committer | anekos | 2011-07-04 00:36:24 +0900 |
commit | a1337b65597a6499d2af492e48ecb6a968dc8779 (patch) | |
tree | 34d9bd319efeb9f3d59f04be48ef9851cea08cf7 | |
parent | 29b7afc2a407138aa9981894228453c523d45a33 (diff) | |
download | vimperator-plugins-a1337b65597a6499d2af492e48ecb6a968dc8779.tar.bz2 |
展開済みURLがない場合に対応 (今度こそ…本当だよね…?)
-rw-r--r-- | twittperator/add-url-completer.tw | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/twittperator/add-url-completer.tw b/twittperator/add-url-completer.tw index 56f0839..8fbb288 100644 --- a/twittperator/add-url-completer.tw +++ b/twittperator/add-url-completer.tw @@ -50,8 +50,9 @@ THE POSSIBILITY OF SUCH DAMAGE. if (!(t.entities && t.entities.urls)) continue; for (let [, u] in Iterator(t.entities.urls)) { - if (u.expanded_url) - cs.push([u.expanded_url || u.url, t.text]); + let url = u.expanded_url || u.url; + if (url) + cs.push([url, t.text]); } } context.completions = cs; |