diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 94cf3669f9..e406c0f615 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -413,7 +413,6 @@ "FormText": [".type", ".DEFAULT"], "FormTitle": [".tag", "variant:\"text"] }}, - "FriendsEmptyState": {"strings": ["FriendsEmptyState", "FriendsSections"], "value": "default"}, "GuildComponents": { "children": { "Badge": {"name": "GuildBadge"}, @@ -428,9 +427,12 @@ } }, "Header": {"props": ["Sizes", "Tags"]}, - "Heading": {"name": "Heading"}, - "HeaderBarComponents": {"name": "HeaderBarContainer"}, - "Image": {"props": ["ImageReadyStates"]}, + "Heading": {"strings": ["data-excessive", ".defaultColor"]}, + "HeaderBarComponents": {"strings": ["isAuthenticated", ".HEADER_BAR"]}, + "ImageComponents": {"strings": ["containerRef", "zoomable", "LOADING"], "exported": false, "value": "exports", "map": { + "Image": ["containerRef"], + "ImageReadyStates": ["LOADING", "ERROR"] + }}, "ImageModal": {"name": "ImageModal"}, "LazyImage": {"name": "LazyImage"}, "ListHeader": {"name": "ListSectionItem"}, diff --git a/Plugins/ImageUtilities/ImageUtilities.plugin.js b/Plugins/ImageUtilities/ImageUtilities.plugin.js index 2bb0a632eb..6ae982a115 100644 --- a/Plugins/ImageUtilities/ImageUtilities.plugin.js +++ b/Plugins/ImageUtilities/ImageUtilities.plugin.js @@ -1208,8 +1208,8 @@ module.exports = (_ => { if (e.instance.props.resized) { let embed = BDFDB.DOMUtils.getParent(BDFDB.dotCN.embedfull, e.node); if (embed) embed.style.setProperty("max-width", "unset", "important"); - if (e.instance.state.readyState != BDFDB.LibraryComponents.Image.ImageReadyStates.READY) { - e.instance.state.readyState = BDFDB.LibraryComponents.Image.ImageReadyStates.READY; + if (e.instance.state.readyState != BDFDB.LibraryComponents.ImageComponents.ImageReadyStates.READY) { + e.instance.state.readyState = BDFDB.LibraryComponents.ImageComponents.ImageReadyStates.READY; BDFDB.ReactUtils.forceUpdate(e.instance); } }