mirror of https://github.com/VERT-sh/VERT.git
fetch pandoc.wasm remotely
This commit is contained in:
parent
838a6c7e0b
commit
2bde4dad3e
|
|
@ -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.
|
|
@ -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",
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue