Skip to content

Commit

Permalink
Do not catch errors from the trackers themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
Morea committed Oct 15, 2023
1 parent 33e7c2b commit c1df53c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions Find Unique Titles/dist/find.unique.titles.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,6 @@ var main = /*#__PURE__*/function () {
};
}();
common__WEBPACK_IMPORTED_MODULE_3__["default"].dom.appendErrorMessage();
window.addEventListener("error", event => {
common__WEBPACK_IMPORTED_MODULE_3__["default"].dom.showError(event.message);
});
window.onunhandledrejection = event => {
console.trace(event.reason);
common__WEBPACK_IMPORTED_MODULE_3__["default"].dom.showError(event.reason);
};
main().catch(e => {
common__WEBPACK_IMPORTED_MODULE_3__["default"].dom.showError(e.message);
});
Expand Down
7 changes: 0 additions & 7 deletions Find Unique Titles/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ const main = async function () {
};

tracker_tools.dom.appendErrorMessage();
window.addEventListener("error", (event) => {
tracker_tools.dom.showError(event.message);
});
window.onunhandledrejection = (event) => {
console.trace(event.reason);
tracker_tools.dom.showError(event.reason);
};
main().catch((e) => {
tracker_tools.dom.showError(e.message);
});
Expand Down

0 comments on commit c1df53c

Please sign in to comment.