mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 23:37:41 +00:00
Fix tooltips not working due to other React roots existing.
This commit is contained in:
parent
7f2522508e
commit
ef626364db
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ export default class TooltipProvider extends Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
onEnable() {
|
onEnable() {
|
||||||
this.tips = new Tooltip('[data-reactroot]', 'ffz-tooltip', {
|
this.tips = new Tooltip('body [data-reactroot]', 'ffz-tooltip', {
|
||||||
html: true,
|
html: true,
|
||||||
delayHide: this.checkDelayHide.bind(this),
|
delayHide: this.checkDelayHide.bind(this),
|
||||||
delayShow: this.checkDelayShow.bind(this),
|
delayShow: this.checkDelayShow.bind(this),
|
||||||
|
|
|
@ -24,7 +24,7 @@ export default class Fine extends Module {
|
||||||
async onEnable(tries=0) {
|
async onEnable(tries=0) {
|
||||||
// TODO: Move awaitElement to utilities/dom
|
// TODO: Move awaitElement to utilities/dom
|
||||||
if ( ! this.root_element )
|
if ( ! this.root_element )
|
||||||
this.root_element = await this.parent.awaitElement(this.selector || '#root [data-reactroot]');
|
this.root_element = await this.parent.awaitElement(this.selector || 'body [data-reactroot]');
|
||||||
|
|
||||||
const accessor = this.accessor = Fine.findAccessor(this.root_element);
|
const accessor = this.accessor = Fine.findAccessor(this.root_element);
|
||||||
if ( ! accessor ) {
|
if ( ! accessor ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue