Append [DEV] to window title in dev

This commit is contained in:
Gregory Schier
2024-08-09 15:35:21 -07:00
parent d280df4a0b
commit d5b0b5481c
2 changed files with 11 additions and 12 deletions

View File

@@ -1,12 +1,5 @@
import { useQuery } from '@tanstack/react-query';
import type { OsType } from '@tauri-apps/plugin-os';
import { type } from '@tauri-apps/plugin-os';
export function useOsInfo() {
return useQuery<{ osType: OsType }>({
queryKey: ['platform'],
queryFn: async () => {
return { osType: await type() };
},
}).data;
return { osType: type() };
}