mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-17 11:30:54 +00:00
Fix searchParent. We're supposed to check inst for a React root, not node.
This commit is contained in:
parent
42c3a23840
commit
40a829355f
1 changed files with 2 additions and 2 deletions
|
@ -170,8 +170,8 @@ export default class Fine extends Module {
|
|||
}
|
||||
|
||||
// Stupid code for traversing up into another React root.
|
||||
if ( traverse_roots && node.containerInfo ) {
|
||||
const parent = node.containerInfo.parentElement,
|
||||
if ( traverse_roots && inst && inst.containerInfo ) {
|
||||
const parent = inst.containerInfo.parentElement,
|
||||
parent_node = parent && this.getReactInstance(parent);
|
||||
|
||||
if ( parent_node ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue