Mailspring/internal_packages/attachments/lib/main.cjsx
Ben Gotow 899ce2a27a fix(window-serialization): Restore window size, remove cruft from atom.coffee
Summary: Simplify the default window size, restore window size when the main window is loaded, fix serialization of packages in beforeunload.

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2061
2015-09-24 10:40:38 -07:00

18 lines
534 B
CoffeeScript

{ComponentRegistry} = require 'nylas-exports'
AttachmentComponent = require "./attachment-component"
ImageAttachmentComponent = require "./image-attachment-component"
module.exports =
activate: (@state={}) ->
ComponentRegistry.register AttachmentComponent,
role: 'Attachment'
ComponentRegistry.register ImageAttachmentComponent,
role: 'Attachment:Image'
deactivate: ->
ComponentRegistry.unregister(AttachmentComponent)
ComponentRegistry.unregister(ImageAttachmentComponent)
serialize: -> @state