From 1c1779728bebdf2872a7c2617a79601980a5c67e Mon Sep 17 00:00:00 2001 From: tiger2005 <41613797+tiger2005@users.noreply.github.com> Date: Thu, 2 Dec 2021 16:54:25 +0800 Subject: [PATCH] Bug fix --- index.html | 1 + js/settings.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 004a988..54a779f 100644 --- a/index.html +++ b/index.html @@ -1152,6 +1152,7 @@ $('body').css('background','#bbb'); } DarkMode = !DarkMode; + profileDrawGraph(profileInfoDatas[4]); } if (window.matchMedia('(prefers-color-scheme)').media !== 'not all') { var listeners={ diff --git a/js/settings.js b/js/settings.js index ee9093d..f7bf8e8 100644 --- a/js/settings.js +++ b/js/settings.js @@ -651,7 +651,6 @@ function initStyle(){ if(problemNewWinLoaded){ problemNewWinJQ.find(".ThemeTypeIf").attr("href", DarkMode ? "./css/problem/dark.css" : "./css/problem/default.css"); } - profileDrawGraph(profileInfoDatas[4]); if(contestRankInfo == undefined || contestRankInfo[contestRankChosen].length == 0) return; if(contestCalculatingRank[contestRankChosen]) $("#singleRankGraphContainer").html(`