mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
added option for disabling console output
This commit is contained in:
+2
-2
@@ -63,7 +63,7 @@ export class Obfuscator {
|
||||
* @param node
|
||||
*/
|
||||
public obfuscateNode (node: ITreeNode): void {
|
||||
this.insertNewNodes(node);
|
||||
this.setNewNodes(node);
|
||||
this.beforeObfuscation(node);
|
||||
|
||||
estraverse.replace(node, {
|
||||
@@ -118,7 +118,7 @@ export class Obfuscator {
|
||||
});
|
||||
};
|
||||
|
||||
private insertNewNodes (astTree: ITreeNode): void {
|
||||
private setNewNodes (astTree: ITreeNode): void {
|
||||
if (this.options['disableConsoleOutput']) {
|
||||
this.setNode(
|
||||
'consoleOutputDisableExpressionNode',
|
||||
|
||||
Reference in New Issue
Block a user