mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 17:36:00 +00:00
16 lines
347 B
TypeScript
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;
|