HyeonJun Jeon

[FIx] Puppeteer

......@@ -5,7 +5,7 @@ async function login(id, pw) {
try {
//for visibility, headless: false
const browser = await puppeteer.launch({
headless: false,
headless: true,
args: [
"--window-size=1920x1080",
"--start-maximized",
......
......@@ -65,7 +65,9 @@ const Login = () => {
);
if (loginResult === "failed") {
setState({ ...state, btn: "Login" });
alert("ID/PW를 확인해주세요");
alert(
"ID/PW를 확인해주세요\n(크롤링 오류일 수 있습니다. 다시 시도해주세요)"
);
return;
} else if (loginResult === "error") {
setState({ ...state, btn: "Login" });
......