summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/misc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/misc.js b/common/misc.js
index 39c696f..6e825d6 100644
--- a/common/misc.js
+++ b/common/misc.js
@@ -56,7 +56,7 @@ function get_secure_salt()
function extract_signed(signature, data, times)
{
const now = new Date();
- times ||= [[now], [now, -1]];
+ times = times || [[now], [now, -1]];
const reductor =
(ok, time) => ok || signature === sign_data(data, ...time);