From 7ac1bf7662312cc842329bf6083e86fb40bb25b6 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 11 Apr 2020 22:03:14 +0200 Subject: [PATCH] Update DiscordPreview.js --- Plugins/ThemeRepo/res/DiscordPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/ThemeRepo/res/DiscordPreview.js b/Plugins/ThemeRepo/res/DiscordPreview.js index af0e10b469..9787f60530 100644 --- a/Plugins/ThemeRepo/res/DiscordPreview.js +++ b/Plugins/ThemeRepo/res/DiscordPreview.js @@ -5,7 +5,7 @@ window.respondToParent = function (data = {}) { if (window.parent && typeof window.parent.postMessage == "function") window.parent.postMessage(data, "*"); - else if (data.hostId != null && data.hostName != null) { + if (data.hostId != null && data.hostName != null) { let ipcRenderer = (require("electron") || {}).ipcRenderer; if (ipcRenderer && typeof ipcRenderer.sendTo == "function") ipcRenderer.sendTo(data.hostId, data.hostName, data); }