check-os-tray-support
v2.0.0
Published
Check if the current OS supports showing Tray (useful for Electron apps)
Downloads
14
Readme
check-os-tray-support
Check if the current OS supports showing Tray (useful for Electron apps)
About
Not all OSes support tray icons - this library helps handle unsupported operating systems gracefully.
Installation
Install the library by running npm install check-os-tray-support --save
.
Usage
This library exposes a single method to check for support:
const trayIconSupported = require("check-os-tray-support");
if (trayIconSupported()) {
// build and attach a tray icon
}
License
This project is licensed under the MIT License