mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
remove unused function
This commit is contained in:
parent
947a1441d8
commit
905fb67766
@ -10,16 +10,6 @@ let totalVisits = 0;
|
|||||||
// Chart instance
|
// Chart instance
|
||||||
let myChart;
|
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 to get chart colors based on current theme
|
||||||
function getChartColors() {
|
function getChartColors() {
|
||||||
|
Loading…
Reference in New Issue
Block a user