We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 404c11d commit b1cdf0bCopy full SHA for b1cdf0b
1 file changed
www/utils/screenshot.ts
@@ -7,7 +7,7 @@ if (Deno.args.length !== 2) {
7
8
const [url, id] = Deno.args;
9
const parsedUrl = new URL(url);
10
-if (parsedUrl.protocol !== "http:" || parsedUrl.protocol !== "https:") {
+if (parsedUrl.protocol !== "http:" && parsedUrl.protocol !== "https:") {
11
throw new Error("Invalid URL");
12
}
13
0 commit comments