diff options
author | tdro <tdro@noreply.example.com> | 2024-03-25 17:45:14 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-03-25 17:45:14 -0400 |
commit | c3c20ef428b1df39bff5ef874214170c9d182379 (patch) | |
tree | 82b56ec5bd9e4c3a2cd5d680f277907b851c82a6 /static/js/timeago.ts | |
parent | 54024746a810e1ab5b9e4c385d4b5a107e723585 (diff) | |
download | canory-c3c20ef428b1df39bff5ef874214170c9d182379.tar.gz canory-c3c20ef428b1df39bff5ef874214170c9d182379.tar.bz2 canory-c3c20ef428b1df39bff5ef874214170c9d182379.zip |
static: Babel fish analysis
Diffstat (limited to 'static/js/timeago.ts')
-rw-r--r-- | static/js/timeago.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/timeago.ts b/static/js/timeago.ts index af8f6f5..7c1973d 100644 --- a/static/js/timeago.ts +++ b/static/js/timeago.ts @@ -8,7 +8,8 @@ style: "long", }); - function viewport(element, options = { offset: 250 }) { + function viewport(element) { + const options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { offset: 250 }; const view = element.getBoundingClientRect(); return view.top >= -options.offset && view.left >= -options.offset |