mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 18:48:31 +00:00
4.0.0-rc21.3
* Fixed: Still chat width. (Tip: Don't go programming on four hours of sleep.)
This commit is contained in:
parent
d9948ad0e7
commit
00d82c697f
2 changed files with 7 additions and 7 deletions
|
@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
|
|||
FrankerFaceZ.Logger = Logger;
|
||||
|
||||
const VER = FrankerFaceZ.version_info = {
|
||||
major: 4, minor: 0, revision: 0, extra: '-rc21.2',
|
||||
major: 4, minor: 0, revision: 0, extra: '-rc21.3',
|
||||
commit: __git_commit__,
|
||||
build: __webpack_hash__,
|
||||
toString: () =>
|
||||
|
|
|
@ -359,13 +359,13 @@ export default class ChatHook extends Module {
|
|||
|
||||
|
||||
updateChatCSS() {
|
||||
if ( ! this._update_chat_css_timer )
|
||||
this._update_chat_css_timer = setTimeout(() => this._updateChatCSS(), 0);
|
||||
if ( ! this._update_css_waiter )
|
||||
this._update_css_waiter = requestAnimationFrame(() => this._updateChatCSS());
|
||||
}
|
||||
|
||||
_updateChatCSS() {
|
||||
clearTimeout(this._update_chat_css_timer);
|
||||
this._update_chat_css_timer = null;
|
||||
cancelAnimationFrame(this._update_css_waiter);
|
||||
this._update_css_waiter = null;
|
||||
|
||||
const width = this.chat.context.get('chat.width'),
|
||||
size = this.chat.context.get('chat.font-size'),
|
||||
|
@ -438,8 +438,8 @@ export default class ChatHook extends Module {
|
|||
this.on('site.web_munch:loaded', this.grabTypes);
|
||||
this.grabTypes();
|
||||
|
||||
this.settings.on('changed:chat.width', this.updateChatCSS, this);
|
||||
this.chat.context.on('changed:chat.use-width', this.updateChatCSS, this);
|
||||
this.chat.context.on('changed:chat.width', this.updateChatCSS, this);
|
||||
this.settings.on('changed:chat.use-width', this.updateChatCSS, this);
|
||||
this.chat.context.on('changed:chat.font-size', this.updateChatCSS, this);
|
||||
this.chat.context.on('changed:chat.font-family', this.updateChatCSS, this);
|
||||
this.chat.context.on('changed:chat.lines.emote-alignment', this.updateChatCSS, this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue