hwreport
v0.7.4
Published
hanwha mobile error report
Readme
Installing
Package manager
Using npm:
$ npm i hwreportUsing yarn:
$ yarn add hwreportOnce the package is installed, you can import the library using import or require approach:
Example - import
import hwreport from "hwreport";
// 서비스 진입(main)에 설정
// report 객체 생성
hwreport.create("TEST0002", window);
// 객체 생성 및 데이터 셋팅(option)
hwreport.create("TEST0002", window).config(userId, platform, nativeVer);
// 사용자 아이디 입력
hwreport.userId = "test1234";
// 리포트 시스템 실행 config를 사용하는 경우 자동으로 설정 됨
hwreport.startApp();
// 사용자 아이디 설정 후 앱 실행
// front (js) 에러 발생 시 sendJsError 호출
// 에러 객체를 매개변수로 입력해주세요
if (typeof window.sendJsError === "function") {
window.sendJsError(error);
}Example - require
const hwreport = require("hwreport").default;