mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
899ce2a27a
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
18 lines
534 B
CoffeeScript
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
|