mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 20:54:26 +08:00
fix(default-client): Missing return statement
This commit is contained in:
parent
cb59a497d8
commit
974f216dcf
1 changed files with 14 additions and 14 deletions
|
@ -17,20 +17,20 @@ module.exports =
|
|||
|
||||
@services.isRegisteredForURLScheme 'mailto', (registered) =>
|
||||
# Prompt them to make Inbox their default client
|
||||
# unless registered
|
||||
@_unlisten = Actions.notificationActionTaken.listen(@_onNotificationActionTaken, @)
|
||||
Actions.postNotification
|
||||
type: 'info',
|
||||
sticky: true
|
||||
message: "Thanks for trying out Edgehill! Would you like to make it your default mail client?",
|
||||
icon: 'fa-inbox',
|
||||
actions: [{
|
||||
label: 'Yes'
|
||||
id: NOTIF_ACTION_YES
|
||||
},{
|
||||
label: 'Not Now'
|
||||
id: NOTIF_ACTION_NO
|
||||
}]
|
||||
unless registered
|
||||
@_unlisten = Actions.notificationActionTaken.listen(@_onNotificationActionTaken, @)
|
||||
Actions.postNotification
|
||||
type: 'info',
|
||||
sticky: true
|
||||
message: "Thanks for trying out Edgehill! Would you like to make it your default mail client?",
|
||||
icon: 'fa-inbox',
|
||||
actions: [{
|
||||
label: 'Yes'
|
||||
id: NOTIF_ACTION_YES
|
||||
},{
|
||||
label: 'Not Now'
|
||||
id: NOTIF_ACTION_NO
|
||||
}]
|
||||
|
||||
deactivate: ->
|
||||
@_unlisten()
|
||||
|
|
Loading…
Add table
Reference in a new issue