mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 10:06:54 +00:00
Minor fixes.
This commit is contained in:
parent
53a47e02f5
commit
160dd98062
1 changed files with 10 additions and 9 deletions
|
@ -186,11 +186,12 @@ export default class Following extends SiteModule {
|
||||||
const hiddenThumbnails = this.settings.provider.get('directory.game.hidden-thumbnails') || [];
|
const hiddenThumbnails = this.settings.provider.get('directory.game.hidden-thumbnails') || [];
|
||||||
const blockedGames = this.settings.provider.get('directory.game.blocked-games') || [];
|
const blockedGames = this.settings.provider.get('directory.game.blocked-games') || [];
|
||||||
|
|
||||||
|
this.hosts = {};
|
||||||
|
|
||||||
const followedHosts = get('data.currentUser.followedHosts', res);
|
const followedHosts = get('data.currentUser.followedHosts', res);
|
||||||
if (!followedHosts)
|
if (!followedHosts)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
this.hosts = {};
|
|
||||||
const newHostNodes = [];
|
const newHostNodes = [];
|
||||||
|
|
||||||
const oldMode = !!followedHosts.nodes;
|
const oldMode = !!followedHosts.nodes;
|
||||||
|
@ -375,7 +376,7 @@ export default class Following extends SiteModule {
|
||||||
const root = (document.body.querySelector('.twilight-root') || document.body);
|
const root = (document.body.querySelector('.twilight-root') || document.body);
|
||||||
root.appendChild(this.hostMenu);
|
root.appendChild(this.hostMenu);
|
||||||
|
|
||||||
this.hostMenuPopper = new Popper(root, this.hostMenu, {
|
this.hostMenuPopper = new Popper(document.body, this.hostMenu, {
|
||||||
placement: 'bottom-start',
|
placement: 'bottom-start',
|
||||||
modifiers: {
|
modifiers: {
|
||||||
flip: {
|
flip: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue