5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-06 07:01:15 +08:00
wails/v3/internal/runtime/desktop/api/application.js
2023-06-24 12:11:48 +10:00

36 lines
656 B
JavaScript

/*
_ __ _ __
| | / /___ _(_) /____
| | /| / / __ `/ / / ___/
| |/ |/ / /_/ / / (__ )
|__/|__/\__,_/_/_/____/
The electron alternative for Go
(c) Lea Anthony 2019-present
*/
/* jshint esversion: 9 */
/**
* The Application API provides methods to interact with the application.
*/
export const Application = {
/**
* Hides the application
*/
Hide: () => {
return wails.Application.Hide();
},
/**
* Shows the application
*/
Show: () => {
return wails.Application.Show();
},
/**
* Quits the application
*/
Quit: () => {
return wails.Application.Quit();
},
};