Explorar el Código

add support of deprecated options

Gildas hace 3 años
padre
commit
4e497623a8
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      cli/args.js

+ 9 - 0
cli/args.js

@@ -246,6 +246,15 @@ args.includeBOM = args.includeBom;
 args.crawlReplaceURLs = args.crawlReplaceUrls;
 args.crawlRemoveURLFragment = args.crawlRemoveUrlFragment;
 args.insertMetaCSP = args.insertMetaCsp;
+if (args.removeScripts) {
+	args.blockScripts = true;
+}
+if (args.removeAudioSrc) {
+	args.blockAudios = true;
+}
+if (args.removeVideoSrc) {
+	args.blockVideos = true;
+}
 const headers = args.httpHeader;
 delete args.httpHeader;
 args.httpHeaders = {};