diff --git a/src/tagui_header.js b/src/tagui_header.js index 121893cc..7f3131ff 100644 --- a/src/tagui_header.js +++ b/src/tagui_header.js @@ -1198,4 +1198,3 @@ function getTimeoutAndCheckNextStepFunction(timeout, then, methodName, defaultTi return timeout; } -// flow path for save_text and snap_image diff --git a/src/tagui_parse.php b/src/tagui_parse.php index 954fc76d..54c598b9 100644 --- a/src/tagui_parse.php +++ b/src/tagui_parse.php @@ -47,6 +47,14 @@ while(!feof($config_file)) {fwrite($output_file,fgets($config_file));} fclose($config_file); while(!feof($header_file)) {fwrite($output_file,fgets($header_file));} fclose($header_file); +// append custom functions file created by user if the file exists +if (file_exists('tagui_custom.js')) { +$custom_file = fopen('tagui_custom.js','r') or die("ERROR - cannot open tagui_custom.js" . "\n"); +while(!feof($custom_file)) {fwrite($output_file,fgets($custom_file));} fwrite($output_file,"\n"); fclose($custom_file);} + +// append comment on flow path variable in casperjs script +fwrite($output_file,"// flow path for save_text and snap_image\n"); + // save flow path in casperjs script to be used by save_text and snap_image // casperjs/phantomjs do not seem to support \ for windows paths, replace with / to work // below marker for appending url_intent when flow file does not start with comments or url