ui: support window.captureException

This commit is contained in:
undefined committed 2022-05-04 20:46:12 +08:00
1 parent 87b980f87d
commit cad010482b
5 files changed
+7 -1

No files matched your search

+1
View File
@@ -64,6 +64,7 @@ async function load() {
try {
await func(currentPageName, loadPage(1, type));
} catch (e) {
(window as any).captureException?.(e);
Notification.warn(`Failed to call '${type}Loading' of ${page.name}`);
console.error(`Failed to call '${type}Loading' of ${page.name}\n${e.stack}`);
console.error(e);