Skip to content

Commit bd451d1

Browse files
Merge pull request #8611 from sagemathinc/fix-latex-pdf-watcher-home-dir
frontend/latex/pdf-watcher: wrong directory fallback for $HOME
2 parents 4b4cce1 + 1feeb50 commit bd451d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/frontend/frame-editors/latex-editor/pdf-watcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class PDFWatcher {
3232
this.on_change = on_change;
3333

3434
const { head: directory, tail: pdfFilename } = path_split(this.pdf_path);
35-
this.watch_dir = directory || ".";
35+
this.watch_dir = directory ?? "";
3636
this.pdf_filename = pdfFilename;
3737
}
3838

0 commit comments

Comments
 (0)