Added a cli method to check the visibility of a window. (#301)
This commit is contained in:
8
globals/utilities.ts
Normal file
8
globals/utilities.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
globalThis.isWindowVisible = (windowName: string): boolean => {
|
||||
const appWindow = App.getWindow(windowName);
|
||||
|
||||
if (appWindow === undefined) {
|
||||
return false;
|
||||
}
|
||||
return appWindow.visible;
|
||||
};
|
||||
Reference in New Issue
Block a user