From 728673460b68541b74097e9e6c3ec588286e7d5c Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 7 Sep 2022 20:03:42 +0200 Subject: timetrack3: Modern JS --- modules/timetrack3/timetrack3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/timetrack3') 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)); } }; } -- cgit v1.2.3-70-g09d2