diff --git a/devices/wim/config/ags/js/misc/closer.js b/devices/wim/config/ags/js/misc/closer.js index 1d144362..271faa64 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]); + }); };