Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/converters/pandoc.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);

Expand Down
Binary file removed static/pandoc.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion static/sw.js
Original file line number Diff line number Diff line change
@@ -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",
];
Expand Down