mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
14 lines
459 B
JavaScript
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);
|
|
}
|
|
}
|