mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-08 23:30: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
|
@ -9,7 +9,7 @@ import User from './user';
|
|||
import {NEW_API, API_SERVER, WEBKIT_CSS as WEBKIT} from 'utilities/constants';
|
||||
|
||||
import {ManagedStyle} from 'utilities/dom';
|
||||
import {has, SourcedSet} from 'utilities/object';
|
||||
import {has, SourcedSet, set_equals} from 'utilities/object';
|
||||
|
||||
|
||||
export default class Room {
|
||||
|
@ -469,7 +469,15 @@ export default class Room {
|
|||
// Bits Data
|
||||
// ========================================================================
|
||||
|
||||
updateBitsConfig(config) {
|
||||
updateBitsConfig(config, force) {
|
||||
if ( ! force && this.bitsConfig && config ) {
|
||||
const old_keys = new Set(Object.keys(this.bitsConfig)),
|
||||
new_keys = new Set(Object.keys(config));
|
||||
|
||||
if ( set_equals(old_keys, new_keys) )
|
||||
return;
|
||||
}
|
||||
|
||||
this.bitsConfig = config;
|
||||
this.buildBitsCSS();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue