Skip to content

Commit f1bc0aa

Browse files
committed
normalLogindelay optional 인자 추가
1 parent 48e9e34 commit f1bc0aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/naver/service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ export default class Service {
1414
this.module = module;
1515
}
1616

17-
async normalLogin(id: string, password: string) {
17+
async normalLogin(id: string, password: string, delay?: number) {
1818
await this.module.urlChanger.moveToLoginURL();
19-
await this.module.pageInteractor.login(id, password);
19+
await this.module.pageInteractor.login(id, password, delay);
2020
}
2121

22-
interactiveLogin(id: string, password: string) {
23-
const login$ = defer(() => from(this.normalLogin(id, password)));
22+
interactiveLogin(id: string, password: string, delay?: number) {
23+
const login$ = defer(() => from(this.normalLogin(id, password, delay)));
2424
const loginStatus$ = interval(500)
2525
.pipe(mergeMap(() => this.module.pageInteractor.getLoginStatus()))
2626
.pipe(

0 commit comments

Comments
 (0)