Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New version to allow for bugs found with tabs

Signed-off-by: patlockley <patrick.lockley@googlemail.com>
  • Loading branch information...
commit a550b7ae987962fb3ed330eca27b2801b0a51766 1 parent 7786e71
@pgogy authored
Showing with 15 additions and 0 deletions.
  1. +14 −0 background.html
  2. +1 −0  popup.html
View
14 background.html
@@ -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
1  popup.html
@@ -54,6 +54,7 @@
license_shorthand = bkg.active_data["license_shorthand"];
author = bkg.active_data["author"];
+
if(author==""){
author = bkg.active_data["attributionName"];
Please sign in to comment.
Something went wrong with that request. Please try again.