mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-27 12:24:30 +08:00
refactor: 完成成就
This commit is contained in:
1 parent
2d3146758b
commit
d178908649
4 files changed
+6
-10
No files matched your search
@@ -276,7 +276,6 @@ mainSetting.on('valueChange', (key, n, o) => {
|
||||
});
|
||||
|
||||
const root = document.getElementById('root') as HTMLDivElement;
|
||||
const root2 = document.getElementById('root2') as HTMLDivElement;
|
||||
|
||||
function handleScreenSetting<T extends number | boolean>(
|
||||
key: string,
|
||||
@@ -318,7 +317,7 @@ function handleScreenSetting<T extends number | boolean>(
|
||||
} else if (key === 'fontSize') {
|
||||
// 字体大小
|
||||
core.setLocalStorage('fontSize', n);
|
||||
root.style.fontSize = root2.style.fontSize = `${n}px`;
|
||||
root.style.fontSize = `${n}px`;
|
||||
} else if (key === 'smoothView') {
|
||||
core.setLocalStorage('smoothView', n);
|
||||
} else if (key === 'criticalGem') {
|
||||
|
||||
Reference in new issue
Block a user