We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a147fc0 commit 404c11dCopy full SHA for 404c11d
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