react-daumpost-hook 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-daumpost-hook",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "다음 카카오에서 무료로 제공하는 우편번호(주소찾기) API를 쉽게 기존 코드에 연결 할 수 있는 hook 패키지 입니다.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -14,11 +14,11 @@ function daumPostCodeHook(props) {
14
14
 
15
15
 
16
16
  // 스크립트가 없을시 로드 해오는 부분
17
- if (!document.getElementById(__scriptId)) {
17
+ if (document.getElementById(__scriptId) === null) {
18
18
  const __postCodeScript = document.createElement('script');
19
19
  __postCodeScript.id = __scriptId;
20
20
  __postCodeScript.src = __postcodeUrl;
21
- document.body.appendChild(__postCodeScript);
21
+ document.head.appendChild(__postCodeScript);
22
22
  }
23
23
 
24
24
  const getPostCode = () => {