From 7f06a60027f4d1e9f4474c93c651bfa12b632dbc Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 28 Oct 2023 21:43:40 -0400 Subject: [PATCH] fix(ags closer): close all popup windows --- devices/wim/config/ags/js/misc/closer.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/devices/wim/config/ags/js/misc/closer.js b/devices/wim/config/ags/js/misc/closer.js index 1d14436..271faa6 100644 --- a/devices/wim/config/ags/js/misc/closer.js +++ b/devices/wim/config/ags/js/misc/closer.js @@ -5,11 +5,9 @@ import Pointers from '../../services/pointers.js'; export default () => { - const closableWindows = Array.from(App.windows).filter(w => { - return w[1].closeOnUnfocus && - w[1].closeOnUnfocus !== 'none'; - }); - closableWindows.forEach(w => { - App.closeWindow(w[0]); - }); + Array.from(App.windows) + .filter(w => w[1].closeOnUnfocus) + .forEach(w => { + App.closeWindow(w[0]); + }); };