Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jun 15, 2015
1 parent 13a5495 commit f29f0a0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions platform/firefox/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2085,13 +2085,7 @@ vAPI.toolbarButton.updateState = function(win, tabId) {
var icon = this.tabs[tabId];

button.setAttribute('badge', icon && icon.badge || '');

if ( !icon || !icon.img ) {
button.classList.add('off');
}
else {
button.classList.remove('off');
}
button.classList.toggle('off', !icon || !icon.img);
};

/******************************************************************************/
Expand Down

0 comments on commit f29f0a0

Please sign in to comment.