diff options
author | Tom Smeding <tom@tomsmeding.com> | 2022-09-07 20:03:42 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2022-09-07 20:03:42 +0200 |
commit | 728673460b68541b74097e9e6c3ec588286e7d5c (patch) | |
tree | 87875aae1f88599ff1ec9958284e1506d25dcc4d /modules/timetrack3 | |
parent | efb81ae3be0ec88193847f2865df124c1a2c6543 (diff) |
timetrack3: Modern JS
Diffstat (limited to 'modules/timetrack3')
-rw-r--r-- | modules/timetrack3/timetrack3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/timetrack3/timetrack3.js b/modules/timetrack3/timetrack3.js index 2aa1988..dbb0e5b 100644 --- a/modules/timetrack3/timetrack3.js +++ b/modules/timetrack3/timetrack3.js @@ -133,7 +133,7 @@ function dbCallback(res, fn) { console.error(err); res.status(500).send("Something went wrong..."); } else { - fn(...Array.apply(Array, arguments).slice(1)); + fn(...Array.from(arguments).slice(1)); } }; } |