mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fix: handle failed sortmessagepageitems
This commit is contained in:
@@ -330,8 +330,12 @@ async function handleMessages(node: Element): Promise<void> {
|
||||
const element = document.getElementById("title")!.firstChild as HTMLElement
|
||||
element.innerText = "Direct Messages"
|
||||
document.title = "Direct Messages ― SEQTA Learn"
|
||||
SortMessagePageItems(node)
|
||||
|
||||
try {
|
||||
SortMessagePageItems(node)
|
||||
} catch (error) {
|
||||
console.error("Error sorting message page items:", error)
|
||||
}
|
||||
|
||||
if (!settingsState.animations) return
|
||||
|
||||
// Hides messages on page load
|
||||
|
||||
Reference in New Issue
Block a user