Mailspring/internal_packages/system-tray/lib/main.es6
Juan Tejada 57fb1919ee fix(system-tray): Move Tray to main process
Summary:
- Fixes #1223
- Still uses a package in the renderer process to listen to changes in
  the unread count and have access to the canvas api.
- Renderer process will write icon to disk and inform main process that
  it should update the icon

Test Plan: - Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2613
2016-02-23 23:26:06 -08:00

16 lines
297 B
JavaScript

import SystemTrayIconStore from './system-tray-icon-store';
const platform = process.platform;
export function activate() {
this.store = new SystemTrayIconStore(platform);
this.store.activate();
}
export function deactivate() {
this.store.deactivate();
}
export function serialize() {
}