Skip to content

Commit

Permalink
fixed an issue I introduced this morning where the id wouldn't get up…
Browse files Browse the repository at this point in the history
…dated.
  • Loading branch information
watcherdm committed Mar 8, 2011
1 parent 84601fe commit a9f3bd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,6 +1,6 @@
{
"name": "NumTabs",
"version": "0.2",
"version": "0.4",
"description": "Adds position numbers to the titles of tabs.",
"background_page": "numtab.html",
"icons": {
Expand Down
6 changes: 3 additions & 3 deletions numtab.js
Expand Up @@ -7,8 +7,8 @@
var title = document.title;
if(id !== old_id){
var len = 0;
if(old_id){
len = old_id.toString().length
if(old_id && /\d\s/g.test(title)){
len = 2;
}
title = id + " " + title.substr(len);
//console.log(title);
Expand All @@ -17,4 +17,4 @@
}
}, 100);
}
})()
})();
Binary file modified numtabs.zip
Binary file not shown.

0 comments on commit a9f3bd2

Please sign in to comment.