Skip to content

Commit 630859d

Browse files
authored
Update index.ts
1 parent cb3b4a7 commit 630859d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

api/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { getScreenshot } from "./_lib/puppeteer";
22

3-
const hostname = "s.vercel.app"
4-
53
module.exports = async (req, res) => {
64
if (!req.query.url) return res.status(400).send("No url query specified.");
75
if (!checkUrl(req.query.url)) return res.status(400).send("Invalid url query specified.");
@@ -23,6 +21,5 @@ function checkUrl(string, hostname) {
2321
} catch (error) {
2422
return false;
2523
}
26-
if (url.hostname == hostname) return false;
2724
return true;
2825
}

0 commit comments

Comments
 (0)