main

mattermost/focalboard

Last updated at: 29/12/2023 09:38

plugin_entry.ts

TLDR

This file is responsible for registering the plugin with the Mattermost web app.

Methods

There are no methods in this file.

Classes

There are no classes in this file.

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import manifest from './manifest'

import Plugin from './index'

declare global {
    interface Window {
        registerPlugin(id: string, plugin: Plugin): void
    }
}

window.registerPlugin(manifest.id, new Plugin())