Add security policy for chrome
This commit is contained in:
@@ -16,8 +16,6 @@ module.exports = async (link, id) => {
|
||||
|
||||
await page.goto(link, { waitUntil: "load", timeout: 0 });
|
||||
|
||||
console.log(screenshotDirectory + "/" + id + ".png");
|
||||
|
||||
await page.screenshot({
|
||||
path: screenshotDirectory + "/" + id + ".png",
|
||||
fullPage: true,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -32,7 +32,6 @@ app.get("/api", async (req, res) => {
|
||||
});
|
||||
|
||||
app.get("/screenshots/:id", async (req, res) => {
|
||||
console.log(screenshotDirectory + "/" + sanitize(req.params.id));
|
||||
res.sendFile(
|
||||
screenshotDirectory + "/" + sanitize(req.params.id),
|
||||
(err) => {
|
||||
@@ -44,7 +43,6 @@ app.get("/screenshots/:id", async (req, res) => {
|
||||
});
|
||||
|
||||
app.get("/pdfs/:id", async (req, res) => {
|
||||
console.log(pdfDirectory + "/" + sanitize(req.params.id));
|
||||
res.sendFile(
|
||||
pdfDirectory + "/" + sanitize(req.params.id),
|
||||
(err) => {
|
||||
|
||||
Reference in New Issue
Block a user