Skip to content

Commit

Permalink
fix: woff2 export path
Browse files Browse the repository at this point in the history
  • Loading branch information
exqt committed Oct 17, 2023
1 parent 5581e0d commit 1b2ab07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class Project {
return file;
}
else if (type == 'woff2') {
await woff2.init('/fonts/woff2.wasm');
await woff2.init('fonts/woff2.wasm');
let b = font.write({ type: 'woff2' });
const file = new File([b], this.attr.name + ".woff2", { type: 'font/woff2' });
return file;
Expand Down

0 comments on commit 1b2ab07

Please sign in to comment.