Update ImageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2022-08-18 08:43:11 +02:00
parent e4cde8738e
commit d04b88d574
1 changed files with 1 additions and 1 deletions

View File

@ -1365,7 +1365,7 @@ module.exports = (_ => {
processSpoiler (e) {
if (!e.returnvalue) {
if (this.settings.rescaleSettings.messages != "NONE" && !e.instance.props.inline && e.instance.props.type == "attachment") delete e.instance.props.containerStyles.maxWidth;
if (this.settings.rescaleSettings.messages != "NONE" && !e.instance.props.inline && e.instance.props.type == "attachment" && e.instance.props.containerStyles) e.instance.props.containerStyles.maxWidth = "100%";
}
else {
if (this.settings.general.nsfwMode) {