From aa8637361134328b88d730c9ea498b4f241566bb Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Tue, 19 Sep 2023 19:41:04 +0800 Subject: [PATCH] docs: change artifact path --- packages/typst.angular/projects/demo/src/app/app.service.ts | 2 +- packages/typst.react/src/demo/App.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/typst.angular/projects/demo/src/app/app.service.ts b/packages/typst.angular/projects/demo/src/app/app.service.ts index e273dbcea..d4767010d 100644 --- a/packages/typst.angular/projects/demo/src/app/app.service.ts +++ b/packages/typst.angular/projects/demo/src/app/app.service.ts @@ -10,7 +10,7 @@ export class AppService { getArtifact(): Observable { return this.http - .get('http://localhost:20810/corpus/skyzh-cv/main.white.artifact.json', { + .get('http://localhost:20810/corpus/skyzh-cv/main.white.artifact.sir.in', { responseType: 'arraybuffer', }) .pipe(map(a => new Uint8Array(a))); diff --git a/packages/typst.react/src/demo/App.tsx b/packages/typst.react/src/demo/App.tsx index 0d4f0e959..dc6bf8250 100644 --- a/packages/typst.react/src/demo/App.tsx +++ b/packages/typst.react/src/demo/App.tsx @@ -25,7 +25,7 @@ export const App = () => { const getArtifactData = async () => { const response = await fetch( - 'http://localhost:20810/corpus/skyzh-cv/main.white.artifact.json', + 'http://localhost:20810/corpus/skyzh-cv/main.white.artifact.sir.in', ).then(response => response.arrayBuffer()); setArtifact(new Uint8Array(response));