Update api.md

This commit is contained in:
Roni Lehto 2021-04-25 21:00:01 +00:00
parent 0a881cf175
commit a071a07fcd

View File

@ -49,6 +49,8 @@ Returns the process arguments
Returns the `log4js` logger. Returns the `log4js` logger.
### api.getWindow() (`BrowserWindow`) ### api.getWindow() (`BrowserWindow`)
Returns the main Electron window of the app Returns the main Electron window of the app
### api.getTouchBar() (`TouchBar` or `null`) only on touchbar-capable macOS devices
Returns the currently used TouchBar object (or `null` if not applicable)
### api.getDataFolder() (`String`) ### api.getDataFolder() (`String`)
Returns the absolute path to L'Math's data folder Returns the absolute path to L'Math's data folder
### api.getTempFolder() (`String`) ### api.getTempFolder() (`String`)