Optimize + refactor code

This commit is contained in:
redphx
2024-10-21 20:50:12 +07:00
parent 075b15aa48
commit de76364a46
44 changed files with 1794 additions and 1274 deletions

View File

@@ -4,8 +4,8 @@ export type PreferenceSetting = {
options?: {[index: string]: string};
multipleOptions?: {[index: string]: string};
unsupported?: boolean;
unsupported_note?: string | HTMLElement;
note?: string | HTMLElement;
unsupportedNote?: string | (() => HTMLElement);
note?: string | (() => HTMLElement);
type?: SettingElementType;
ready?: (setting: PreferenceSetting) => void;
migrate?: (this: Preferences, savedPrefs: any, value: any) => void;