Skip to content

Commit

Permalink
New version to allow for bugs found with tabs
Browse files Browse the repository at this point in the history
Signed-off-by: patlockley <patrick.lockley@googlemail.com>
  • Loading branch information
pgogy committed May 10, 2011
1 parent 7786e71 commit a550b7a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions background.html
Expand Up @@ -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];
Expand Down
1 change: 1 addition & 0 deletions popup.html
Expand Up @@ -54,6 +54,7 @@
license_shorthand = bkg.active_data["license_shorthand"];
author = bkg.active_data["author"];


if(author==""){

author = bkg.active_data["attributionName"];
Expand Down

0 comments on commit a550b7a

Please sign in to comment.