Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Sep 2, 2023
1 parent c5c5657 commit 714d0b1
Show file tree
Hide file tree
Showing 199 changed files with 82,085 additions and 87,710 deletions.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ const createMainWin = () => {
ipcMain.handle("get-url-content", async (event, config) => {
const axios = require("axios");
try {
const response = await axios.get(config.url);
const response = await axios.get(config.url, {
headers: {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36",
},
});
return response.data;
} catch (error) {
console.error(error);
Expand Down
177 changes: 0 additions & 177 deletions public/lib/pdf/LICENSE

This file was deleted.

Loading

0 comments on commit 714d0b1

Please sign in to comment.