Skip to content

Commit e2cc532

Browse files
committed
Make sure error is always defined
1 parent 69b6605 commit e2cc532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@
463463
timezone = collectMetricByString("c")
464464
? Intl.DateTimeFormat().resolvedOptions().timeZone
465465
: undefinedVar;
466-
} catch (e) {
466+
} catch (error) {
467467
warn(error);
468468
}
469469

@@ -679,7 +679,7 @@
679679
// https://github.com/simpleanalytics/roadmap/issues/462
680680
try {
681681
path = overwrite || decodeURIComponentFunc(loc.pathname);
682-
} catch (e) {
682+
} catch (error) {
683683
warn(error);
684684
}
685685

0 commit comments

Comments
 (0)