diff --git a/Plugins/_res/DiscordPreview.html b/Plugins/_res/DiscordPreview.html index 0e01b1c882..0db6eab54d 100644 --- a/Plugins/_res/DiscordPreview.html +++ b/Plugins/_res/DiscordPreview.html @@ -1,6 +1,6 @@
- + diff --git a/Plugins/_res/DiscordPreview.js b/Plugins/_res/DiscordPreview.js index fa7172d8d8..e33fe47b8b 100644 --- a/Plugins/_res/DiscordPreview.js +++ b/Plugins/_res/DiscordPreview.js @@ -71,6 +71,7 @@ } if (data.html || data.htmlClassName) document.documentElement.className = data.html || data.htmlClassName; + if (window.parent && typeof window.parent.postMessage == "function") document.documentElement.classList.add("iframe-mode"); document.documentElement.classList.add("mouse-mode"); document.documentElement.classList.add("full-motion");