Mailspring/examples/N1-Github/lib/main.cjsx

13 lines
325 B
Text
Raw Normal View History

{ComponentRegistry} = require 'nylas-exports'
ViewOnGithubButton = require "./view-on-github-button"
module.exports =
activate: (@state={}) ->
ComponentRegistry.register ViewOnGithubButton,
roles: ['message:Toolbar']
deactivate: ->
ComponentRegistry.unregister(ViewOnGithubButton)
serialize: -> @state