diff --git a/src/preview/viewer.ts b/src/preview/viewer.ts index 4f6cd7234..039cfe9fc 100644 --- a/src/preview/viewer.ts +++ b/src/preview/viewer.ts @@ -30,7 +30,7 @@ export { serializer } from './viewer/pdfviewerpanel' export { hook } from './viewer/pdfviewerhook' lw.watcher.pdf.onChange(pdfPath => { - if (lw.compile.compiling && path.relative(lw.compile.compiledPDFPath, pdfPath) !== '') { + if (!lw.compile.compiling || path.relative(lw.compile.compiledPDFPath, pdfPath) !== '') { refresh(pdfPath) } })