Skip to content

Commit

Permalink
(commit so i can write a description)
Browse files Browse the repository at this point in the history
for some reason, last time i was messing with this, when a localization didnt exist it would just error

but now that doesnt happen, even though nothings changed

i have no understanding of why or how because i looked into it and there is code to make sure localization exists, and if it doesnt, fallback to english

it was probably a dumb caching issue
  • Loading branch information
shy1132 committed Nov 22, 2023
1 parent e86937b commit 5545889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/header/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ let userDataFunction = async user => {

messageElements.push(messageElement);
} else {
console.log(lastEntry)
//console.log(lastEntry)
}
}
if(!newMessages) {
Expand Down Expand Up @@ -1302,7 +1302,7 @@ let userDataFunction = async user => {
let userWhoAdded = inbox.users[lastMessage.sender_id];
messageEntry.preview = LOC.user_added_you_inbox.message.replace('$NAME$', escapeHTML(userWhoAdded.name));
} else {
console.log(lastEvent)
//console.log(lastEvent)
}
messageElement.innerHTML = /*html*/`
<img src="${messageEntry.icon}" width="48" height="48" class="inbox-message-avatar">
Expand Down

0 comments on commit 5545889

Please sign in to comment.