0.1.0-1-alpha.2-fix.2
This commit is contained in:
12
crates/apps/game-reflex-poc-tauri/frontend/ts/bridge.ts
Normal file
12
crates/apps/game-reflex-poc-tauri/frontend/ts/bridge.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// file: crates/apps/game-reflex-poc-tauri/frontend/ts/bridge.ts
|
||||
// version: 1
|
||||
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
export async function getRuntimeLabel(): Promise<string> {
|
||||
return await invoke<string>("get_runtime_label");
|
||||
}
|
||||
|
||||
export async function notifyFrontendReady(): Promise<void> {
|
||||
await invoke("frontend_ready");
|
||||
}
|
||||
Reference in New Issue
Block a user