Toggle navigation
Toggle navigation
This project
Loading...
Sign in
HyeonJun Jeon
/
Extended-Calendar
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
HyeonJun Jeon
2022-06-07 20:43:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b73c5611b93efce6f7b20a6d13e083e7471904bc
b73c5611
1 parent
acba6c53
[FIx] Puppeteer
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
server/libs/E_Campus.js
src/pages/Login.js
server/libs/E_Campus.js
View file @
b73c561
...
...
@@ -5,7 +5,7 @@ async function login(id, pw) {
try
{
//for visibility, headless: false
const
browser
=
await
puppeteer
.
launch
({
headless
:
fals
e
,
headless
:
tru
e
,
args
:
[
"--window-size=1920x1080"
,
"--start-maximized"
,
...
...
src/pages/Login.js
View file @
b73c561
...
...
@@ -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"
});
...
...
Please
register
or
login
to post a comment