From 72dc10c3eacab241deee6f58f8d8ad3c661c3dab Mon Sep 17 00:00:00 2001 From: Mashy Date: Tue, 5 Nov 2019 12:46:43 +1000 Subject: [PATCH] disable tutorial if info is hidden --- client/src/events.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/events.jsx b/client/src/events.jsx index c295e0e5..6445aa82 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -224,7 +224,9 @@ function registerEvents(store) { if (v.phase === 'Finished') { ws.sendAccountInstances(); } - if (localStorage.getItem('tutorial-complete')) { + + // instance.mobile.less hides info at @media 1000 + if (localStorage.getItem('tutorial-complete') || window.innerWidth <= 1100) { store.dispatch(actions.setTutorial(null)); } else if (v.time_control === 'Practice' && v.rounds.length === 1 && tutorial) { tutorialVbox(player, store, tutorial);