mirror of
https://github.com/priyanshujain/margin-mail.git
synced 2026-10-03 03:27:06 +00:00
scaffold the app: tauri crate, vite front end, icons, ci
This commit is contained in:
commit
088ec9c6e4
267 files changed
+18617
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
// Placeholder. The contract lands in F3.
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
export const isTauri = typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
|
||||
export const isMacDesktop =
|
||||
isTauri && typeof navigator !== "undefined" && /mac/i.test(navigator.userAgent);
|
||||
|
||||
export function call<T>(command: string, args?: Record<string, unknown>): Promise<T> {
|
||||
return invoke<T>(command, args);
|
||||
}
|
||||
Reference in new issue
Block a user