get rid of console spam
This commit is contained in:
parent
b8ced0020d
commit
3691b93c50
24
js/main.js
24
js/main.js
|
@ -2531,7 +2531,7 @@ class V2 {
|
||||||
if (m && filter(m)) return m;
|
if (m && filter(m)) return m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.warn("Cannot find loaded module in cache");
|
// console.warn("Cannot find loaded module in cache");
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2627,17 +2627,17 @@ class V2 {
|
||||||
const GuildComponent = reactInstance.return.type;
|
const GuildComponent = reactInstance.return.type;
|
||||||
if (!GuildComponent) return;
|
if (!GuildComponent) return;
|
||||||
this.guildListItemsPatch = BdApi.monkeyPatch(GuildComponent.prototype, "render", {after: (data) => {
|
this.guildListItemsPatch = BdApi.monkeyPatch(GuildComponent.prototype, "render", {after: (data) => {
|
||||||
if (data.returnValue && data.thisObject) {
|
if (data.returnValue && data.thisObject) {
|
||||||
const returnValue = data.returnValue;
|
const returnValue = data.returnValue;
|
||||||
const guildData = data.thisObject.props;
|
const guildData = data.thisObject.props;
|
||||||
returnValue.props.className += " bd-guild";
|
returnValue.props.className += " bd-guild";
|
||||||
if (guildData.unread) returnValue.props.className += " bd-unread";
|
if (guildData.unread) returnValue.props.className += " bd-unread";
|
||||||
if (guildData.selected) returnValue.props.className += " bd-selected";
|
if (guildData.selected) returnValue.props.className += " bd-selected";
|
||||||
if (guildData.audio) returnValue.props.className += " bd-audio";
|
if (guildData.audio) returnValue.props.className += " bd-audio";
|
||||||
if (guildData.video) returnValue.props.className += " bd-video";
|
if (guildData.video) returnValue.props.className += " bd-video";
|
||||||
if (guildData.badge) returnValue.props.className += " bd-badge";
|
if (guildData.badge) returnValue.props.className += " bd-badge";
|
||||||
if (guildData.animatable) returnValue.props.className += " bd-animatable";
|
if (guildData.animatable) returnValue.props.className += " bd-animatable";
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue