mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-17 03:20:53 +00:00
4.0.0-rc18
* Added: Reason context menus for in-line timeout and ban actions. * Fixed: Certain FFZ tool-tips using the wrong input handlers. * Fixed: Do not update CSS whenever bits configuration changes, only when necessary. (Performance fix for the bleed purple campaign.) * Changed: Mark certain page elements with a flag to avoid crawling them with MutationObservers. (More performance~~)
This commit is contained in:
parent
1649294bde
commit
23816fafc9
16 changed files with 464 additions and 36 deletions
|
@ -189,11 +189,14 @@ export class ManagedStyle {
|
|||
this._style = null;
|
||||
}
|
||||
|
||||
set(key, value) {
|
||||
set(key, value, force) {
|
||||
const block = this._blocks[key];
|
||||
if ( block )
|
||||
if ( block ) {
|
||||
if ( ! force && block.textContent === value )
|
||||
return;
|
||||
|
||||
block.textContent = value;
|
||||
else
|
||||
} else
|
||||
this._style.appendChild(this._blocks[key] = document.createTextNode(value));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue