mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Add test-http-api crate to make app work in browser
A new `invoke` function calls either the tauri backend or the `test-http-api` function if ran in a browser.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
import { Renderer, markdownWithExtensions } from "@app/lib/markdown";
|
||||
import { highlight } from "@app/lib/syntax";
|
||||
import { twemoji, scrollIntoView, isCommit } from "@app/lib/utils";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { invoke } from "@app/lib/invoke";
|
||||
|
||||
export let rid: string;
|
||||
export let content: string;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
patchStatusBackgroundColor,
|
||||
patchStatusColor,
|
||||
} from "@app/lib/utils";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { invoke } from "@app/lib/invoke";
|
||||
import { onMount } from "svelte";
|
||||
import { push } from "@app/lib/router";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user