diff --git a/bin/js_features.js b/bin/js_features.js index c6a4ba07..26f13da7 100755 --- a/bin/js_features.js +++ b/bin/js_features.js @@ -138,7 +138,9 @@ function processFile(file) { } if (ARGS.extract_features) { - console.log(output); + if (removeWhitespace(output) != '{"query":[],"assign":[]}') { + console.log(output); + } } else if (ARGS.rename){ callServer( HOST, diff --git a/extract_features.py b/extract_features.py index f78a58cd..6862b58f 100755 --- a/extract_features.py +++ b/extract_features.py @@ -26,7 +26,7 @@ TMP_DIR = "" def ExtractFeaturesForFile(f): global TMP_DIR - os.system("nodejs bin/js_features.js --skip_minified '%s' >> %s/%d" % (f, TMP_DIR, os.getpid())) + os.system("nodejs bin/js_features.js --extract_features --skip_minified '%s' >> %s/%d" % (f, TMP_DIR, os.getpid())) def ExtractFeaturesForFileList(files): global TMP_DIR