Update DiscordPreview.js

This commit is contained in:
Mirco Wittrien 2020-04-11 22:03:14 +02:00
parent e12f47245d
commit 7ac1bf7662
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}