Mailspring/internal_packages/undo-redo/lib/main.cjsx

14 lines
358 B
Text
Raw Normal View History

{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
module.exports =
activate: (@state={}) ->
UndoRedoComponent = require "./undo-redo-component"
ComponentRegistry.register UndoRedoComponent,
location: WorkspaceStore.Location.ThreadList
deactivate: ->
ComponentRegistry.unregister UndoRedoComponent
serialize: -> @state