mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fix: theme locking not working in light mode
This commit is contained in:
@@ -5,6 +5,7 @@ import stringToHTML from "../utils/stringToHTML";
|
||||
import { settingsState } from "../utils/listeners/SettingsState";
|
||||
import { updateAllColors } from "./colors/Manager";
|
||||
import { delay } from "../utils/delay";
|
||||
import { settings } from '../../../dist/src/seqta/content/MenuItemSVGKey.json__import';
|
||||
|
||||
export async function AddBetterSEQTAElements() {
|
||||
if (settingsState.onoff) {
|
||||
@@ -250,7 +251,7 @@ async function addDarkLightToggle() {
|
||||
document.getElementById('LightDarkModeButton')!.addEventListener('click', async () => {
|
||||
const darklightText = document.getElementById('darklighttooliptext');
|
||||
|
||||
if (settingsState.originalDarkMode) {
|
||||
if (settingsState.originalDarkMode != undefined) {
|
||||
darklightText!.innerText = 'Locked by current theme';
|
||||
|
||||
await delay(1000)
|
||||
|
||||
Reference in New Issue
Block a user