Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

use axios for sync without callback#7

Merged
shiftpsh merged 7 commits intosolved-ac:masterfrom
mu-hun:async-without-callback
Jul 28, 2019
Merged

use axios for sync without callback#7
shiftpsh merged 7 commits intosolved-ac:masterfrom
mu-hun:async-without-callback

Conversation

@mu-hun
Copy link
Copy Markdown
Contributor

@mu-hun mu-hun commented Jul 27, 2019

콜백 구문의 복잡도를 줄이기 위해 axios 를 사용하면 어떨까 싶어 draft PR을 보내드립니다.

Promise 기반의 HTTP 클라이언트 axios를 사용하면 DRY(Don't-Repeat-Yourself)한 코드를 쉽게 유지할 수 있습니다.

./content.js의 경우 (#5 와 마찬가지로) 수정을 하지 않았습니다.

@mu-hun mu-hun marked this pull request as ready for review July 28, 2019 09:18
@mu-hun
Copy link
Copy Markdown
Contributor Author

mu-hun commented Jul 28, 2019

bf0944e : axios 모듈을 <script src="" /> 요소를 통해 불러왔습니다.

manifest.json 를 통해선 못 불러오는 것 같더군요.

#5 와 마찬가지로 테스트 완료하여 정식 PR로 열었습니다. 리뷰 부탁드려요.

Copy link
Copy Markdown
Member

@shiftpsh shiftpsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋네요. 파일명에 버전을 적어 주시면 감사하겠습니다. bootstrap.3.2.0.min.js 처럼요

@shiftpsh shiftpsh merged commit 5a5a1b7 into solved-ac:master Jul 28, 2019
Copy link
Copy Markdown
Member

@shiftpsh shiftpsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mu-hun mu-hun deleted the async-without-callback branch July 28, 2019 15:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants