Commit 26d7136b by Edgar Hipp

test to work even if no images works

parent 86db9d6e
...@@ -14,6 +14,8 @@ class ImageModule ...@@ -14,6 +14,8 @@ class ImageModule
gen=@manager.getInstance('gen') gen=@manager.getInstance('gen')
@imgManager=new ImgManager(gen.zip,@renderingFileName) @imgManager=new ImgManager(gen.zip,@renderingFileName)
@imgManager.loadImageRels() @imgManager.loadImageRels()
if event=='rendered'
if @qrQueue.length==0 then @finished()
get:(data)-> get:(data)->
if data=='loopType' if data=='loopType'
templaterState=@manager.getInstance('templaterState') templaterState=@manager.getInstance('templaterState')
...@@ -88,6 +90,7 @@ class ImageModule ...@@ -88,6 +90,7 @@ class ImageModule
.replaceImages() .replaceImages()
catch e catch e
@on('error',e) @on('error',e)
finished:->
on:(event,data)-> on:(event,data)->
if event=='error' if event=='error'
throw data throw data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment