fix: handle failed sortmessagepageitems

This commit is contained in:
SethBurkart123
2025-04-03 13:05:33 +11:00
parent 3dc77dd398
commit 0bf4ed8157
+4
View File
@@ -330,7 +330,11 @@ async function handleMessages(node: Element): Promise<void> {
const element = document.getElementById("title")!.firstChild as HTMLElement const element = document.getElementById("title")!.firstChild as HTMLElement
element.innerText = "Direct Messages" element.innerText = "Direct Messages"
document.title = "Direct Messages ― SEQTA Learn" document.title = "Direct Messages ― SEQTA Learn"
try {
SortMessagePageItems(node) SortMessagePageItems(node)
} catch (error) {
console.error("Error sorting message page items:", error)
}
if (!settingsState.animations) return if (!settingsState.animations) return