2024-01-13 11:15:08 -05:00
|
|
|
// Types
|
2024-01-29 18:54:07 -05:00
|
|
|
import { PopupWindow } from 'global-types';
|
2024-01-13 11:15:08 -05:00
|
|
|
|
2023-09-25 12:43:36 -04:00
|
|
|
|
2023-10-24 17:26:38 -04:00
|
|
|
export default () => {
|
2024-01-31 15:09:03 -05:00
|
|
|
(App.windows as Array<PopupWindow>)
|
|
|
|
.filter((w) => w &&
|
|
|
|
w.close_on_unfocus &&
|
|
|
|
w.close_on_unfocus !== 'stay')
|
2023-11-21 01:29:46 -05:00
|
|
|
.forEach((w) => {
|
2024-01-31 15:09:03 -05:00
|
|
|
App.closeWindow(w.name);
|
2023-10-28 21:43:40 -04:00
|
|
|
});
|
2023-09-13 19:04:23 -04:00
|
|
|
};
|