From 1487e657e8bb0bd85f4bbdbce1a9ba3e48e84c0d Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 7 Feb 2020 18:06:23 +0100 Subject: [PATCH] Update ShowImageDetails.plugin.js --- Plugins/ShowImageDetails/ShowImageDetails.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/ShowImageDetails/ShowImageDetails.plugin.js b/Plugins/ShowImageDetails/ShowImageDetails.plugin.js index 90bf875059..64584cf50e 100644 --- a/Plugins/ShowImageDetails/ShowImageDetails.plugin.js +++ b/Plugins/ShowImageDetails/ShowImageDetails.plugin.js @@ -154,7 +154,7 @@ var ShowImageDetails = (_ => { if (this.started) return; BDFDB.PluginUtils.init(this); - BDFDB.ModuleUtils.patch(this, (BDFDB.ModuleUtils.findByName("renderImageComponent", false).exports || {}), "renderImageComponent", {after: e => { + BDFDB.ModuleUtils.patch(this, BDFDB.ModuleUtils.findByProperties("renderImageComponent"), "renderImageComponent", {after: e => { if (e.returnValue && e.returnValue.type && (e.returnValue.type.displayName == "LazyImageZoomable" || e.returnValue.type.displayName == "LazyImage") && e.methodArguments[0].original && e.methodArguments[0].src.indexOf("https://media.discordapp.net/attachments") == 0) return this.injectImageDetails(e.methodArguments[0], e.returnValue); }});