@wails/runtime
Version:
Wails V2 Javascript runtime library
33 lines (28 loc) • 714 B
JavaScript
/*
_ __ _ __
| | / /___ _(_) /____
| | /| / / __ `/ / / ___/
| |/ |/ / /_/ / / (__ )
|__/|__/\__,_/_/_/____/
The lightweight framework for web-like apps
(c) Lea Anthony 2019-present
*/
/* jshint esversion: 6 */
/**
* Sets the tray icon to the icon referenced by the given ID.
* Tray icons must follow this convention:
* - They must be PNG files
* - They must reside in a "trayicons" directory in the project root
* - They must have a ".png" extension
*
* The icon ID is the name of the file, without the ".png"
*
* @export
* @param {string} trayIconID
*/
function SetIcon(trayIconID) {
window.wails.Tray.SetIcon(trayIconID);
}
module.exports = {
SetIcon: SetIcon,
};