From 89c0f0319c4f0b190b3217d03805156e6ce886a9 Mon Sep 17 00:00:00 2001 From: HF Date: Mon, 15 Aug 2022 01:51:32 +0200 Subject: [PATCH] reset windows on phones after ever refresh --- src/store/reducers/windows.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/reducers/windows.js b/src/store/reducers/windows.js index 19f80c1..3095ccd 100644 --- a/src/store/reducers/windows.js +++ b/src/store/reducers/windows.js @@ -470,7 +470,7 @@ export default function windows( const showWindows = width > SCREEN_WIDTH_THRESHOLD; if (action.type === 'RECEIVE_ME') { - if (state.modal) { + if (state.modal || !showWindows) { // reset if out of date return initialState; }