mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-03-30 11:40:17 +03:00
9 lines
243 B
TypeScript
Executable file
9 lines
243 B
TypeScript
Executable file
// FIXME: Should correct handle dark selector
|
|
export const getDarkmodeStatus = (): boolean => {
|
|
const html = document.documentElement;
|
|
|
|
return (
|
|
html.classList.contains("dark") ||
|
|
html.getAttribute("data-theme") === "dark"
|
|
);
|
|
};
|