mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 20:21:00 +00:00
fix exception when content undefined in TikzManager
This commit is contained in:
parent
187786b4e4
commit
55fa22caa9
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module.exports = TikzManager =
|
|||
SafeReader.readFile path, 65536, "utf8", (error, content) ->
|
||||
return callback(error) if error?
|
||||
usesTikzExternalize = content?.indexOf("\\tikzexternalize") >= 0
|
||||
usesPsTool = content.indexOf("{pstool}") >= 0
|
||||
usesPsTool = content?.indexOf("{pstool}") >= 0
|
||||
logger.log compileDir: compileDir, mainFile: mainFile, usesTikzExternalize:usesTikzExternalize, usesPsTool: usesPsTool, "checked for packages needing main file as output.tex"
|
||||
needsMainFile = (usesTikzExternalize || usesPsTool)
|
||||
callback null, needsMainFile
|
||||
|
|
Loading…
Reference in a new issue