Fixed avatar gifs breaking in chat

This commit is contained in:
Mirco Wittrien 2018-12-23 14:56:12 +01:00
parent 9dfe912687
commit 2e2269fe91
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class EditUsers {
getDescription () {return "Allows you to change the icon, name, tag and color of users. Does not work in compact mode.";}
getVersion () {return "3.0.3";}
getVersion () {return "3.0.4";}
getAuthor () {return "DevilBro";}
@ -633,7 +633,7 @@ class EditUsers {
let url = data.removeIcon ? null : ("url(" + (data.url || BDFDB.getUserAvatar(info.id)) + ") center/cover");
if (url && avatar.classList.contains(BDFDB.disCN.avatarmaskprofile) && url.search(/discordapp\.com\/avatars\/[0-9]*\/a_/) > -1) url = url.replace(".webp)", ".gif)");
avatar.style.setProperty("background", url);
if (!BDFDB.isObjectEmpty(data)) {
if (data.url || data.removeIcon) {
avatar.EditUsersChangeObserver = new MutationObserver((changes, _) => {
changes.forEach(
(change, i) => {