refactor: clean up getLightDarkModeString function

This commit is contained in:
sethburkart123
2024-06-09 13:41:53 +10:00
parent cc932ee262
commit 5adb6c5648
+4 -7
View File
@@ -1436,15 +1436,12 @@ async function AddBetterSEQTAElements(toggle: any) {
} }
} }
function GetLightDarkModeString(darkmodetoggle: boolean) { function GetLightDarkModeString(darkMode: boolean) {
let tooltipstring if (darkMode) {
return 'Switch to light theme'
if (darkmodetoggle) {
tooltipstring = 'Switch to light theme'
} else { } else {
tooltipstring = 'Switch to dark theme' return 'Switch to dark theme'
} }
return tooltipstring
} }
async function CheckCurrentLesson(lesson: any, num: number) { async function CheckCurrentLesson(lesson: any, num: number) {