Skip to content

Commit

Permalink
fix(ui): check if in tauri context
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Aug 3, 2024
1 parent ab3386f commit 5c593e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ export const getMyDna = async (role:string, client: AppClient) : Promise<DnaHash
return dnaHash
}

export const isTauriContext = () => (window as any).__TAURI__ !== undefined;
export const isTauriContext = () => (window as any).__TAURI_INTERNALS__ !== undefined;

0 comments on commit 5c593e5

Please sign in to comment.