We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115669f commit 4405c21Copy full SHA for 4405c21
1 file changed
src/recorder.ts
@@ -1140,11 +1140,15 @@ class Recorder {
1140
}
1141
1142
if (finished && currPage.url) {
1143
- onPageArchived(currPage.url, currPage.size)
1144
- .then(() => {})
1145
- .catch((err) => {
+ try {
+ // Fire and forget, but with immediate error handling
+ onPageArchived(currPage.url, currPage.size).catch((err) => {
1146
console.error("onPageArchived failed:", err);
1147
});
1148
+ } catch (err) {
1149
+ // Handle synchronous errors too
1150
+ console.error("onPageArchived synchronous error:", err);
1151
+ }
1152
1153
1154
return res;
0 commit comments