This commit is contained in:
patty 2026-04-02 09:56:47 +07:00 committed by GitHub
commit ea5beb0385
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ export class PandocConverter extends Converter {
(async () => {
try {
this.status = "downloading";
this.wasm = await fetch("/pandoc.wasm").then((r) =>
// currently fetching from unsafe origin due to CORS, needs to be changed before merge
this.wasm = await fetch("https://newjeans.cafe/pandoc.wasm").then((r) =>
r.arrayBuffer(),
);

Binary file not shown.

View File

@ -1,7 +1,7 @@
const CACHE_NAME = "vert-wasm-cache-v2"; // updated when workers update
const WASM_FILES = [
"/pandoc.wasm",
"https://newjeans.cafe/pandoc.wasm",
"https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm/ffmpeg-core.js",
"https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm/ffmpeg-core.wasm",
];