stuff
This commit is contained in:
parent
59a115e0e8
commit
9585e3e45d
|
@ -4784,6 +4784,7 @@
|
|||
DiscordClassModules.SettingsWindow = BDFDB.ModuleUtils.findByProperties("contentRegion", "standardSidebarView");
|
||||
DiscordClassModules.Slider = BDFDB.ModuleUtils.findByProperties("slider", "grabber");
|
||||
DiscordClassModules.Spoiler = BDFDB.ModuleUtils.findByProperties("spoilerContainer", "hidden");
|
||||
DiscordClassModules.SpoilerEmbed = BDFDB.ModuleUtils.findByProperties("hiddenSpoilers", "spoiler");
|
||||
DiscordClassModules.Switch = BDFDB.ModuleUtils.findByProperties("switchDisabled", "valueChecked");
|
||||
DiscordClassModules.Table = BDFDB.ModuleUtils.findByProperties("stickyHeader", "sortIcon");
|
||||
DiscordClassModules.Text = BDFDB.ModuleUtils.findByProperties("defaultColor", "defaultMarginh1");
|
||||
|
@ -5980,6 +5981,9 @@
|
|||
slidermini: ["Slider", "mini"],
|
||||
slidertrack: ["Slider", "track"],
|
||||
spoilercontainer: ["Spoiler", "spoilerContainer"],
|
||||
spoilerembed: ["SpoilerEmbed", "spoiler"],
|
||||
spoilerembedhidden: ["SpoilerEmbed", "hiddenSpoilers"],
|
||||
spoilerembedinline: ["SpoilerEmbed", "inline"],
|
||||
spoilerhidden: ["Spoiler", "hidden"],
|
||||
spoilertext: ["Spoiler", "spoilerText"],
|
||||
spoilerwarning: ["Spoiler", "spoilerWarning"],
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,6 +6,12 @@ var ShowImageDetails = (_ => {
|
|||
this.props.attachment = BDFDB.ReactUtils.findValue(BDFDB.ReactUtils.getValue(this, "_reactInternalFiber.return"), "attachment", {up: true});
|
||||
BDFDB.ReactUtils.forceUpdate(this);
|
||||
}
|
||||
componentDidUpdate() {
|
||||
if (!this.props.attachment || !this.props.attachment.size) {
|
||||
this.props.attachment = BDFDB.ReactUtils.findValue(BDFDB.ReactUtils.getValue(this, "_reactInternalFiber.return"), "attachment", {up: true});
|
||||
BDFDB.ReactUtils.forceUpdate(this);
|
||||
}
|
||||
}
|
||||
render() {
|
||||
return !this.props.attachment ? null : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||
className: BDFDB.disCN._showimagedetailsdetails,
|
||||
|
@ -160,7 +166,7 @@ var ShowImageDetails = (_ => {
|
|||
if (window.BDFDB && typeof BDFDB === "object" && BDFDB.loaded) {
|
||||
this.stopping = true;
|
||||
|
||||
BDFDB.MessageUtils.rerenderAll();
|
||||
//BDFDB.MessageUtils.rerenderAll();
|
||||
|
||||
BDFDB.PluginUtils.clear(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue