mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +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);
|
|
}
|
|
}
|