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

15 lines
459 B
Text
Raw Normal View History

import { ExtensionRegistry } from 'mailspring-exports';
import SpellcheckComposerExtension from './spellcheck-composer-extension';
export function activate() {
2017-09-27 02:36:58 +08:00
if (AppEnv.config.get('core.composing.spellcheck')) {
ExtensionRegistry.Composer.register(SpellcheckComposerExtension);
}
}
export function deactivate() {
2017-09-27 02:36:58 +08:00
if (AppEnv.config.get('core.composing.spellcheck')) {
ExtensionRegistry.Composer.unregister(SpellcheckComposerExtension);
}
}