Skip to content

Commit

Permalink
Fix symlinks on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyLeslie committed Jun 24, 2024
1 parent a96ce83 commit 1114696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/app/electron/GristApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export class GristApp {
}));
}
const link = path.join(docsRoot, `${docId}.grist`);
if (!await fse.pathExists(link)) {
await fse.symlink(target, link, 'junction');
if (!fse.pathExistsSync(link)) {
fse.symlinkSync(target, link);
}
this.openWindowForDoc(docId, openWith);
}
Expand Down

0 comments on commit 1114696

Please sign in to comment.