spiegel-keyman/developer/server/src/tray.ts
Marc Durdin a6907028e5 feat(developer): improve server tray icon
- Add separators
- Refactor for clearer win32 delineation
- Add items to open browser
2022-01-19 11:04:15 +11:00

16 lines
347 B
TypeScript

import os = require('os');
class TrayStub {
public start(localPort: number, ngrokAddress: string) {}
public restart(localPort: number, ngrokAddress: string) {}
public shutdown() {};
};
let tray = new TrayStub();
if(os.platform() == 'win32') {
const Win32Tray = require('./win32-tray');
tray = new Win32Tray();
}
export default tray;