Permalink
Browse files

New version to allow for bugs found with tabs

Signed-off-by: patlockley <patrick.lockley@googlemail.com>
  • Loading branch information...
1 parent 7786e71 commit a550b7ae987962fb3ed330eca27b2801b0a51766 @pgogy committed May 10, 2011
Showing with 15 additions and 0 deletions.
  1. +14 −0 background.html
  2. +1 −0 popup.html
View
@@ -183,11 +183,25 @@
case "attributionURL":
url_cache[request.url_to_show]["attributionURL"] = request.html[x][2];
break;
+ case "author":
+ url_cache[request.url_to_show]["author"] = request.html[x][2];
+ break;
}
}
+ for(x in url_cache){
+
+ if(url_cache[x]["tab_id"]==sender.tab.id){
+
+ url_cache[x]["tab_id"] = "";
+ break;
+
+ }
+
+ }
+
url_cache[request.url_to_show]["tab_id"] = sender.tab.id;
active_data = url_cache[request.url_to_show];
View
@@ -54,6 +54,7 @@
license_shorthand = bkg.active_data["license_shorthand"];
author = bkg.active_data["author"];
+
if(author==""){
author = bkg.active_data["attributionName"];

0 comments on commit a550b7a

Please sign in to comment.