Mailspring/app/internal_packages/composer-spellcheck/lib/main.es6

14 lines
459 B
JavaScript

import { ExtensionRegistry } from 'mailspring-exports';
import SpellcheckComposerExtension from './spellcheck-composer-extension';
export function activate() {
if (AppEnv.config.get('core.composing.spellcheck')) {
ExtensionRegistry.Composer.register(SpellcheckComposerExtension);
}
}
export function deactivate() {
if (AppEnv.config.get('core.composing.spellcheck')) {
ExtensionRegistry.Composer.unregister(SpellcheckComposerExtension);
}
}