Mailspring/app/internal_packages/events/lib/main.jsx
2018-01-23 17:35:09 -08:00

17 lines
377 B
JavaScript

const { ComponentRegistry } = require('mailspring-exports');
const EventHeader = require('./event-header');
module.exports = {
activate(state = {}) {
this.state = state;
ComponentRegistry.register(EventHeader, { role: 'message:BodyHeader' });
},
deactivate() {
ComponentRegistry.unregister(EventHeader);
},
serialize() {
return this.state;
},
};