mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-13 21:24:58 +08:00
8f7b99ee4f
Summary: Moved events into metadata. Removed a lot of code Test Plan: todo Reviewers: juan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2866
25 lines
818 B
JavaScript
25 lines
818 B
JavaScript
import {
|
|
ComponentRegistry,
|
|
ExtensionRegistry,
|
|
} from 'nylas-exports';
|
|
import LinkTrackingButton from './link-tracking-button';
|
|
import LinkTrackingComposerExtension from './link-tracking-composer-extension';
|
|
import LinkTrackingMessageExtension from './link-tracking-message-extension';
|
|
|
|
|
|
export function activate() {
|
|
ComponentRegistry.register(LinkTrackingButton,
|
|
{role: 'Composer:ActionButton'});
|
|
|
|
ExtensionRegistry.Composer.register(LinkTrackingComposerExtension);
|
|
|
|
ExtensionRegistry.MessageView.register(LinkTrackingMessageExtension);
|
|
}
|
|
|
|
export function serialize() {}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(LinkTrackingButton);
|
|
ExtensionRegistry.Composer.unregister(LinkTrackingComposerExtension);
|
|
ExtensionRegistry.MessageView.unregister(LinkTrackingMessageExtension);
|
|
}
|