From a13b1d0adad6ccad8364e2264e60fb612c73c411 Mon Sep 17 00:00:00 2001 From: AudricV <74829229+AudricV@users.noreply.github.com> Date: Sun, 15 Jan 2023 11:39:35 +0100 Subject: [PATCH] [Client] Remove localStorage requirement As we use cookies for the game and that localStorage is only used to save the theme set on the start page, it isn't needed to use it, as the dark theme would be set as a fallback. In order to show a cookies requirement message if they are disabled, we need to remove the one of the localStorage, as when cookies access is disabled, localStorage cannot be accessed. --- truthseeker/static/js/game_start_page.js | 1 - 1 file changed, 1 deletion(-) diff --git a/truthseeker/static/js/game_start_page.js b/truthseeker/static/js/game_start_page.js index 11d58a0..9ef93e1 100644 --- a/truthseeker/static/js/game_start_page.js +++ b/truthseeker/static/js/game_start_page.js @@ -160,7 +160,6 @@ function setCurrentTheme() { } catch (e) { console.error("Unable to set theme from localStorage", e); htmlElement.classList.add("dark"); - showUnsupportedBrowserMessage("Votre navigateur ne semble pas supporter le localStorage. Certains navigateurs nécessitant l'autorisation d'utiliser des cookies pour utiliser le localStorage, vérifiez que les cookies sont autorisés pour le site du jeu dans le vôtre."); } }