From 1140ee17d6aba2c81a8ba1122170c97c517fda3a Mon Sep 17 00:00:00 2001 From: Felipe Martin <812088+fmartingr@users.noreply.github.com> Date: Tue, 15 Apr 2025 15:18:57 +0000 Subject: [PATCH] fix: allow plugins when embedding mattermost (#30739) --- webapp/channels/src/plugins/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/webapp/channels/src/plugins/index.ts b/webapp/channels/src/plugins/index.ts index 72a9faf572..3e08596407 100644 --- a/webapp/channels/src/plugins/index.ts +++ b/webapp/channels/src/plugins/index.ts @@ -62,11 +62,6 @@ window.plugins = {}; // During the beta, plugins manipulated the global window.plugins data structure directly. This // remains possible, but is officially deprecated and may be removed in a future release. function registerPlugin(id: string, plugin: Plugin): void { - // Don't register plugins if MMEMBED cookie is set - if (document.cookie.includes('MMEMBED=1')) { - return; - } - const oldPlugin = window.plugins[id]; if (oldPlugin && oldPlugin.uninitialize) { oldPlugin.uninitialize();