Explorar el Código

set outputDirectory option to "" by default

Gildas hace 5 años
padre
commit
671c39e2e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cli/single-file-cli-api.js

+ 1 - 1
cli/single-file-cli-api.js

@@ -230,7 +230,7 @@ async function capturePage(options) {
 }
 
 function getFilename(filename, options, index = 1) {
-	let outputDirectory = options.outputDirectory;
+	let outputDirectory = options.outputDirectory || "";
 	if (outputDirectory && !outputDirectory.endsWith("/")) {
 		outputDirectory += "/";
 	}