Mailspring/app/internal_packages/activity/lib/plugin-helpers.es6

23 lines
565 B
Text
Raw Normal View History

export const OPEN_TRACKING_ID = 'open-tracking';
export const LINK_TRACKING_ID = 'link-tracking';
export function pluginFor(id) {
if (id === OPEN_TRACKING_ID) {
return {
2017-09-27 02:33:08 +08:00
name: 'open',
predicate: 'opened',
iconName: 'icon-activity-mailopen.png',
notificationInterval: 600000, // 10 minutes in ms
2017-09-27 02:33:08 +08:00
};
}
if (id === LINK_TRACKING_ID) {
return {
2017-09-27 02:33:08 +08:00
name: 'link',
predicate: 'clicked',
iconName: 'icon-activity-linkopen.png',
notificationInterval: 10000, // 10 seconds in ms
2017-09-27 02:33:08 +08:00
};
}
2017-09-27 02:33:08 +08:00
return undefined;
}