aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2011-08-17 08:29:28 +0900
committeranekos2011-08-17 08:29:28 +0900
commit526185baf0e1bb478e37aa9c29979e532997e87e (patch)
tree915f261c784d790364582b4c8e198c66df438408
parent9c4b37880a23a60a5e56091562983859c14d3d64 (diff)
downloadvimperator-plugins-526185baf0e1bb478e37aa9c29979e532997e87e.tar.bz2
あかんがな
-rw-r--r--google-plus-commando.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index f262a78..b44dcd0 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -829,7 +829,7 @@ let g:gplus_commando_map_menu = "m"
elem.dispatchEvent(evt);
}
- let plusone = elem.getAttribute('g:entity').indexOf('buzz:') === 0;
+ let plusone = (elem.getAttribute('g:entity') || '').indexOf('buzz:') === 0;
if (plusone)
mouseEvent('mouseover');
action(elem, count);