Skip to content

Commit

Permalink
2.2.1 fixed check tab_id before block
Browse files Browse the repository at this point in the history
  • Loading branch information
ETY001 committed Feb 14, 2016
1 parent a1807a4 commit c6faed3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions js/bookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,18 @@ var Bookmark = {
}
}
},
//通过tab_id找index
find_index_by_tab_id: function(tab_id){
for(var i in Bookmark.list){
if(Bookmark.list[i]==tab_id){
return i;
}
}
return false;
},
//设置一个书签跳过
set_jump: function(tab_id, val){
if(!Bookmark.find_index_by_tab_id(tab_id))return;
if(val==undefined)val=1;
if(val==1){
Bookmark.jump[tab_id] = val;
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"name": "__MSG_appname__",
"description": "__MSG_appdesc__",
"version": "2.2.0",
"version": "2.2.1",

"icons": {
"16": "img/icon-16.png",
Expand Down

0 comments on commit c6faed3

Please sign in to comment.