2017-09-27 02:33:08 +08:00
|
|
|
import { SoundRegistry } from 'nylas-exports';
|
2017-06-24 09:22:51 +08:00
|
|
|
|
2017-08-17 04:31:26 +08:00
|
|
|
export function activate() {
|
2017-09-06 04:37:40 +08:00
|
|
|
// FIXME: Use the mailspring:// protocol handlers once we upgrade Electron past
|
2017-06-24 09:22:51 +08:00
|
|
|
// v30.0
|
|
|
|
// See: https://github.com/atom/electron/issues/1123
|
2017-08-17 04:31:26 +08:00
|
|
|
SoundRegistry.register({
|
2017-09-27 02:33:08 +08:00
|
|
|
send: ['internal_packages', 'custom-sounds', 'CUSTOM_UI_Send_v1.ogg'],
|
|
|
|
confirm: ['internal_packages', 'custom-sounds', 'CUSTOM_UI_Confirm_v1.ogg'],
|
|
|
|
'hit-send': ['internal_packages', 'custom-sounds', 'CUSTOM_UI_HitSend_v1.ogg'],
|
|
|
|
'new-mail': ['internal_packages', 'custom-sounds', 'CUSTOM_UI_NewMail_v1.ogg'],
|
2017-06-24 09:22:51 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-08-17 04:31:26 +08:00
|
|
|
export function deactivate() {
|
2017-09-27 02:33:08 +08:00
|
|
|
SoundRegistry.unregister(['send', 'confirm', 'hit-send', 'new-mail']);
|
2017-06-24 09:22:51 +08:00
|
|
|
}
|