mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
14 lines
456 B
JavaScript
14 lines
456 B
JavaScript
import {ExtensionRegistry} from 'nylas-exports';
|
|
import SpellcheckComposerExtension from './spellcheck-composer-extension';
|
|
|
|
export function activate() {
|
|
if (NylasEnv.config.get("core.composing.spellcheck")) {
|
|
ExtensionRegistry.Composer.register(SpellcheckComposerExtension);
|
|
}
|
|
}
|
|
|
|
export function deactivate() {
|
|
if (NylasEnv.config.get("core.composing.spellcheck")) {
|
|
ExtensionRegistry.Composer.unregister(SpellcheckComposerExtension);
|
|
}
|
|
}
|