MCPcopy Create free account
hub / github.com/cortexkit/magic-context / isTauri

Function isTauri

packages/dashboard/src/lib/platform.ts:20–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18let token: string | null = null;
19
20export const isTauri = () =>
21 typeof window !== "undefined" && "__TAURI_INTERNALS__" in (window as Window & object);
22
23export function initServeToken() {
24 if (typeof window === "undefined") return;

Callers 10

platform.test.tsFile · 0.90
checkForUpdateFunction · 0.90
installAndRelaunchFunction · 0.90
runUpdaterFunction · 0.90
invokeFunction · 0.85
askFunction · 0.85
notifyFunction · 0.85
listenFunction · 0.85
checkTauriUpdateFunction · 0.85
relaunchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected