1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-10-18 02:42:53 +02:00

Compare commits

..

No commits in common. "4db8c302d8e1a80637970fa5dc58884be027c7a9" and "8c68438fbbb7227b54dab666a550567b54162c8a" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View File

@ -197,22 +197,9 @@ class DISCORD {
return { server, channel }; return { server, channel };
} }
else if (obj.guild_id) { else if (obj.guild_id) {
let guild;
for (const child of DOM.getReactProps(document.querySelector("nav header [class*='headerContent-']")).children) {
if (child && child.props && child.props.guild) {
guild = child.props.guild;
break;
}
}
if (!guild || typeof guild.name !== "string" || obj.guild_id !== guild.id) {
return null;
}
const server = { const server = {
"id": guild.id, "id": obj.guild_id,
"name": guild.name, "name": document.querySelector("nav header h1[class*='name-']").innerText,
"type": "SERVER" "type": "SERVER"
}; };

View File

@ -7,6 +7,6 @@ using DHT.Utils;
namespace DHT.Utils { namespace DHT.Utils {
static class Version { static class Version {
public const string Tag = "37.2.0.0"; public const string Tag = "37.1.0.0";
} }
} }