Feat UI/UX Page [Settings]

- [+] feat(settings.tsx): set useCustomConfig to true if clientConfig.isApp is truthy
This commit is contained in:
H0llyW00dzZ 2023-11-27 07:03:41 +07:00
parent d76e744eab
commit bf5e7aaa48
No known key found for this signature in database
GPG Key ID: 05C7FFFC0845C930

View File

@ -635,6 +635,11 @@ export function Settings() {
navigate(Path.Home);
}
};
if (clientConfig?.isApp) { // Force to set custom endpoint to true if it's app
accessStore.update((state) => {
state.useCustomConfig = true;
});
}
document.addEventListener("keydown", keydownEvent);
return () => {
document.removeEventListener("keydown", keydownEvent);