add server info query

This commit is contained in:
Kendall Garner 2024-02-01 08:17:31 -08:00
parent 9995b2e774
commit 9720fcc202
No known key found for this signature in database
GPG key ID: 18D2767419676C87
13 changed files with 173 additions and 10 deletions

View file

@ -27,6 +27,7 @@ import { FontType, PlaybackType, PlayerStatus } from '/@/renderer/types';
import '@ag-grid-community/styles/ag-grid.css';
import { useDiscordRpc } from '/@/renderer/features/discord-rpc/use-discord-rpc';
import i18n from '/@/i18n/i18n';
import { useServerVersion } from '/@/renderer/hooks/use-server-version';
ModuleRegistry.registerModules([ClientSideRowModelModule, InfiniteRowModelModule]);
@ -49,6 +50,7 @@ export const App = () => {
const remoteSettings = useRemoteSettings();
const textStyleRef = useRef<HTMLStyleElement>();
useDiscordRpc();
useServerVersion();
useEffect(() => {
if (type === FontType.SYSTEM && system) {