move texliveImageNameOveride further down request so it works for

compile tests
This commit is contained in:
Henry Oswald
2018-07-13 11:52:49 +01:00
parent 3545852173
commit 8d846f64a9
3 changed files with 10 additions and 12 deletions

View File

@@ -69,10 +69,6 @@ module.exports = RequestParser =
sanitizedRootResourcePath = RequestParser._sanitizePath(rootResourcePath)
response.rootResourcePath = RequestParser._checkPath(sanitizedRootResourcePath)
if settings.texliveImageNameOveride? and compile.options?.imageName?
tag = compile.options.imageName.split(":")[1]
response.imageName = "#{settings.texliveImageNameOveride}:#{tag}"
for resource in response.resources
if resource.path == originalRootResourcePath
resource.path = sanitizedRootResourcePath