mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:03:39 -05: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) ->
|
SafeReader.readFile path, 65536, "utf8", (error, content) ->
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
usesTikzExternalize = content?.indexOf("\\tikzexternalize") >= 0
|
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"
|
logger.log compileDir: compileDir, mainFile: mainFile, usesTikzExternalize:usesTikzExternalize, usesPsTool: usesPsTool, "checked for packages needing main file as output.tex"
|
||||||
needsMainFile = (usesTikzExternalize || usesPsTool)
|
needsMainFile = (usesTikzExternalize || usesPsTool)
|
||||||
callback null, needsMainFile
|
callback null, needsMainFile
|
||||||
|
|
Loading…
Reference in a new issue