Closed bjrmatos closed 8 years ago
Ok, this makes switching between recipes easier. I guess this feature is anyway not yet used, so lets do it.
:+1: i think i'm the only person taking advange of it :laughing:
It makes more sense at least for images. Thanks for good suggestion!
while developing
jsreport-electron-pdf
i noticed that probably is best to standardize the name ofwaitForJS
var name across recipes to something more generic for thejsreport
use case.in
jsreport-phantom-pdf
andjsreport-phantom-image
the var name isPHANTOM_HTML_TO_PDF_READY
, whilePHANTOM_HTML_TO_PDF_READY
makes sense in the case ofphantom-html-to-pdf
but injsreport
would be more convenient to set this name equally (at least in the repositories that we maintain), so injsreport-electron-pdf
i have customized the name toJSREPORT_READY_TO_START
, i think this name is more generic and does not asume that it only be used to generate PDF, in the end thewaitForJS
feature is generic enough to be used in any recipe (images, etc)