2017-09-27 02:42:18 +08:00
|
|
|
import { ExtensionRegistry } from 'mailspring-exports';
|
2016-03-01 10:47:22 +08:00
|
|
|
import SpellcheckComposerExtension from './spellcheck-composer-extension';
|
|
|
|
|
|
|
|
export function activate() {
|
2017-09-27 02:36:58 +08:00
|
|
|
if (AppEnv.config.get('core.composing.spellcheck')) {
|
2016-06-17 06:12:08 +08:00
|
|
|
ExtensionRegistry.Composer.register(SpellcheckComposerExtension);
|
|
|
|
}
|
2016-03-01 10:47:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
2017-09-27 02:36:58 +08:00
|
|
|
if (AppEnv.config.get('core.composing.spellcheck')) {
|
2016-06-17 06:12:08 +08:00
|
|
|
ExtensionRegistry.Composer.unregister(SpellcheckComposerExtension);
|
|
|
|
}
|
2016-03-01 10:47:22 +08:00
|
|
|
}
|