mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
4.29.2
* Fixed: Initialization problems in pop-out chat. * Changed: Set a default size for emoji, to prevent rendering issues in any future cases where initialization breaks.
This commit is contained in:
parent
35c99df8aa
commit
032c8821df
3 changed files with 14 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "frankerfacez",
|
||||
"author": "Dan Salvato LLC",
|
||||
"version": "4.29.1",
|
||||
"version": "4.29.2",
|
||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
|
|
|
@ -133,6 +133,7 @@
|
|||
}
|
||||
|
||||
.ffz-emoji {
|
||||
width: 1.8rem; height: 1.8rem;
|
||||
width: calc(var(--ffz-chat-font-size) * 1.5);
|
||||
height: calc(var(--ffz-chat-font-size) * 1.5);
|
||||
|
||||
|
|
|
@ -85,11 +85,19 @@ export default class Apollo extends Module {
|
|||
const root = this.fine.react,
|
||||
inst = root && root.stateNode;
|
||||
|
||||
client = inst?.props?.client || root?.memoizedProps?.client;
|
||||
client = inst?.props?.client;
|
||||
if ( root && ! client ) {
|
||||
client = this.fine.searchTree(null, n => n.props?.client?.queryManager, 500);
|
||||
if ( client )
|
||||
client = client?.props?.client;
|
||||
let i=0, node = root;
|
||||
while( ! client?.queryManager && node && i++ < 20 ) {
|
||||
client = node?.memoizedProps?.client;
|
||||
node = node?.child;
|
||||
}
|
||||
|
||||
if ( ! client ) {
|
||||
const host = this.fine.searchTree(null, n => n.props?.client?.queryManager, 500);
|
||||
if ( host )
|
||||
client = host.props.client;
|
||||
}
|
||||
}
|
||||
|
||||
this.client = client;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue