This commit is contained in:
sanex3339
2016-06-01 16:45:19 +03:00
parent 515ffa0a22
commit 19b1a13971
6 changed files with 15 additions and 16 deletions
+3 -2
View File
@@ -13,8 +13,9 @@ class JavaScriptObfuscator {
static generateCode(astTree, options) {
let escodegenParams = Object.assign({}, JavaScriptObfuscator.escodegenParams);
if (options.hasOwnProperty('compact')) {
escodegenParams.format = {};
escodegenParams.format.compact = options.compact;
escodegenParams.format = {
compact: options.compact
};
}
return escodegen.generate(astTree, escodegenParams);
}