Skip to content

Commit

Permalink
fix(website): fix loading of dusty.svg on Windows
Browse files Browse the repository at this point in the history
If symlink support is disabled in Windows or in Git, dusty.svg does not
load properly. This is because StaticVFSFile does not use our readFile
wrapper which resolves symlinks manually.

Fix the problem by resolving symlinks via Git commands on Windows.
  • Loading branch information
strager committed Nov 28, 2023
1 parent 426bd99 commit 374fb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/vfs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class StaticVFSFile extends VFSEntry {
}

async getContentsAsync() {
return await fs.promises.readFile(this._path);
return await readFileAsync(this._path);
}

getContentType() {
Expand Down

0 comments on commit 374fb2f

Please sign in to comment.