From 905fb6776663a404c53997e8c2032fd155bf10cd Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Tue, 25 Mar 2025 16:32:36 +0000 Subject: [PATCH] remove unused function --- src/main/resources/static/js/usage.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/resources/static/js/usage.js b/src/main/resources/static/js/usage.js index 93d041f8b..a9c98ed9e 100644 --- a/src/main/resources/static/js/usage.js +++ b/src/main/resources/static/js/usage.js @@ -10,16 +10,6 @@ let totalVisits = 0; // Chart instance let myChart; -// Function to determine if we're in dark mode -function isDarkMode() { - // Check if dark theme is active based on the app's theme implementation - const attribute = document.documentElement.getAttribute('data-bs-theme') === 'dark'; - const preference = window.matchMedia('(prefers-color-scheme: dark)').matches; - return ( - attribute || - preference - ); -} // Function to get chart colors based on current theme function getChartColors() {