mirror of https://github.com/gorhill/uBlock.git
Fixes #1367 (Safari badge alignment)
This commit is contained in:
parent
b7c0b95ff4
commit
df8c82f6b4
|
@ -539,7 +539,6 @@
|
||||||
state.active = true;
|
state.active = true;
|
||||||
// force re-render since we probably switched tabs
|
// force re-render since we probably switched tabs
|
||||||
state.dirty = (1 << 1) | (1 << 0);
|
state.dirty = (1 << 1) | (1 << 0);
|
||||||
|
|
||||||
renderIcon(state);
|
renderIcon(state);
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
@ -564,9 +563,11 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var icon = iconState.icon;
|
var icon = iconState.icon;
|
||||||
icon.badge = iconState.badge;
|
|
||||||
// only update the image if needed:
|
// only update the image if needed:
|
||||||
if(iconState.dirty & 1) {
|
if(iconState.dirty & 2) {
|
||||||
|
icon.badge = iconState.badge;
|
||||||
|
}
|
||||||
|
if(iconState.dirty & 1 && icon.image !== ICON_URLS[iconState.img]) {
|
||||||
icon.image = ICON_URLS[iconState.img];
|
icon.image = ICON_URLS[iconState.img];
|
||||||
}
|
}
|
||||||
iconState.dirty = 0;
|
iconState.dirty = 0;
|
||||||
|
|
Loading…
Reference in New Issue