EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
index.js
Go to the documentation of this file.
1// EverydayTechAgent Tray Plugin
2// Cross-platform system tray icon for agent status
3
4const path = require('path');
5const os = require('os');
6
7// If Electron is available, use trayMenu for advanced tray
8try {
9 require.resolve('electron');
10 module.exports = require('./trayMenu');
11} catch (e) {
12 // Fallback to node-notifier tray
13 module.exports = {
14 start: showTray
15 };
16}
17
18function showTray() {
19 notifier.notify({
20 title: 'EverydayTechAgent',
21 message: 'Agent is running',
22 icon: iconPath,
23 wait: false
24 });
25}
26
27const iconPath = path.join(__dirname, '../../everydaytech_icon.ico');