1
0
Fork 0

We can only fast switch to tabs 1-9

This commit is contained in:
Gregory Eremin 2014-09-16 13:03:20 +04:00
parent d9279d5408
commit 71331e33b6
No known key found for this signature in database
GPG Key ID: 5EFA427EEC26E86C
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ var update = function(info) {
return;
}
// We can only fast switch to tabs 1-9
if (info.index > 8) {
return;
}
// Ignore chrome pages
if (!info.url.match(/^http/)) {
return;