mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-12-12 20:36:29 +01:00
15 lines
458 B
JavaScript
15 lines
458 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);
|
|
}
|
|
}
|