aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r--google-plus-commando.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index a6f38c2..a3a0b5f 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -785,6 +785,9 @@ let g:gplus_commando_map_menu = "m"
},
open: function () {
function clicks (links) {
+ if (links.length < 1)
+ throw GPCError('No link.');
+
if (links.length === 1)
return click(links[0]);