1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

code review

This commit is contained in:
gorhill 2015-06-15 15:57:12 -04:00
parent 13a5495f28
commit f29f0a0f09

View File

@ -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);
};
/******************************************************************************/