mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-29 18:53:04 +08:00
fix: allow plugins when embedding mattermost (#30739)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user