Mailspring/app/internal_packages/undo-redo/lib/main.es6
2017-11-06 18:12:14 +01:00

16 lines
412 B
JavaScript

import { ComponentRegistry, WorkspaceStore } from 'mailspring-exports';
import UndoRedoToast from './undo-redo-toast';
export function activate() {
if (AppEnv.isMainWindow()) {
ComponentRegistry.register(UndoRedoToast, {
location: WorkspaceStore.Sheet.Global.Footer,
});
}
}
export function deactivate() {
if (AppEnv.isMainWindow()) {
ComponentRegistry.unregister(UndoRedoToast);
}
}