From 5c593e5faa192c8f4d014246e3304b8cdec8ae3a Mon Sep 17 00:00:00 2001 From: Matt Gabrenya Date: Sat, 3 Aug 2024 15:12:45 -0700 Subject: [PATCH] fix(ui): check if in tauri context --- ui/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/util.ts b/ui/src/util.ts index 145e05e..4ed87d7 100644 --- a/ui/src/util.ts +++ b/ui/src/util.ts @@ -51,4 +51,4 @@ export const getMyDna = async (role:string, client: AppClient) : Promise (window as any).__TAURI__ !== undefined; \ No newline at end of file +export const isTauriContext = () => (window as any).__TAURI_INTERNALS__ !== undefined; \ No newline at end of file