mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2026-10-22 23:12:12 +03:00
Fix not recognizing channels after a recent Discord update
This commit is contained in:
1 parent
dd4db0a9f9
commit
1977c9c961
1 file changed
+2
-2
@@ -126,13 +126,13 @@ var DISCORD = (function(){
|
||||
channelListEle = document.getElementById("channels");
|
||||
|
||||
var channel = channelListEle.querySelector("[class*='modeSelected']").parentElement;
|
||||
var props = DISCORD.getReactProps(channel);
|
||||
var props = DISCORD.getReactProps(channel).children.props;
|
||||
|
||||
if (!props){
|
||||
return null;
|
||||
}
|
||||
|
||||
var channelObj = props.children.props.channel;
|
||||
var channelObj = props.channel || props.children().props.channel;
|
||||
|
||||
if (!channelObj){
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user