1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

4.0.0-rc16.1

* Fixed: FrankerFaceZ not loading due to a change in the structure of Twitch pages.
* Known Issue: Tooltips not behaving quite right in pop-out chat.
This commit is contained in:
SirStendec 2019-04-12 17:34:01 -04:00
parent c43e572eec
commit 00859ac966
17 changed files with 27 additions and 22 deletions

View file

@ -36,10 +36,10 @@ export default class TooltipProvider extends Module {
}
onEnable() {
const container = document.querySelector('.twilight-root,.twilight-minimal-root,.clips-root') || document.body,
is_minimal = container && container.classList.contains('twilight-minimal-root');
const container = document.querySelector('#root>div,#root,.clips-root') || document.body,
is_minimal = false; //container && container.classList.contains('twilight-minimal-root');
this.tips = new Tooltip(is_minimal ? '.twilight-minimal-root,body' : 'body #root,body', 'ffz-tooltip', {
this.tips = new Tooltip(is_minimal ? '.twilight-minimal-root,body' : '#root>div,#root,body', 'ffz-tooltip', {
html: true,
delayHide: this.checkDelayHide.bind(this),
delayShow: this.checkDelayShow.bind(this),