diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/js/codecopy.ts | 4 | ||||
-rw-r--r-- | static/js/timeago.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/static/js/codecopy.ts b/static/js/codecopy.ts index 4c22d07..7c47c65 100644 --- a/static/js/codecopy.ts +++ b/static/js/codecopy.ts @@ -11,10 +11,10 @@ }, 3000, ); - } catch (err) { + } catch (error) { console.error( "Error: navigator.clipboard.writeText() failed.", - err, + error, ); } }, diff --git a/static/js/timeago.ts b/static/js/timeago.ts index 2cd72ca..6e56063 100644 --- a/static/js/timeago.ts +++ b/static/js/timeago.ts @@ -26,10 +26,10 @@ if (hours <= 48) { return element.textContent = relative.format(-1 * hours, "hour",); } if (days <= 60) { return element.textContent = relative.format(-1 * days, "day",); } - } catch (err) { + } catch (error) { console.error( "Error: Unable to resolve relative time format!", - err, + error, ); } }, |