소스 검색

Add basic error reporting

master
Fen Dweller 3 년 전
부모
커밋
ffddadcfea
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      macrovision.html

+ 2
- 0
macrovision.html 파일 보기

@@ -42,12 +42,14 @@
if (firsterror) {
firsterror = false;
alert("An error occured. If you're on a computer, hit F12 to open the developer tools, click the Console tab, and send the red text to chemicalcrux. If you're on mobile, screenshot this instead:\n\n" + msg + "\n" + url + "\n" + "line: " + line + "\n" + "col: " + col + "\nerror: " + error);
umami.trackEvent(line + ":" + col + " " + msg, "error")
}
}
window.onunhandledrejection = function(e) {
if (firsterror) {
firsterror = false;
alert("An error occured. If you're on a computer, hit F12 to open the developer tools, click the Console tab, and send the red text to chemicalcrux. If you're on mobile, screenshot this instead:\n\n" + e.reason);
umami.trackEvent(line + ":" + col + " " + msg, "error")
}
}
</script>


불러오는 중...
취소
저장