mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
17 lines
377 B
JavaScript
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;
|
|
},
|
|
};
|