Skip to content

Commit b1cdf0b

Browse files
committed
fix
1 parent 404c11d commit b1cdf0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

www/utils/screenshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (Deno.args.length !== 2) {
77

88
const [url, id] = Deno.args;
99
const parsedUrl = new URL(url);
10-
if (parsedUrl.protocol !== "http:" || parsedUrl.protocol !== "https:") {
10+
if (parsedUrl.protocol !== "http:" && parsedUrl.protocol !== "https:") {
1111
throw new Error("Invalid URL");
1212
}
1313

0 commit comments

Comments
 (0)