From 990bea095c893ea94c3d90ad94cf1819f330e4c5 Mon Sep 17 00:00:00 2001 From: lancegin Date: Thu, 29 Jun 2017 08:03:35 +0800 Subject: [PATCH] fix: subclass constructor params --- src/totp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/totp.js b/src/totp.js index 2f0eeb2..085630a 100644 --- a/src/totp.js +++ b/src/totp.js @@ -14,8 +14,8 @@ import OTP from './otp'; * * @return {OTP} */ - constructor(interval=30, ...args) { - super(...args); + constructor(secret, interval=30) { + super(secret); this.interval = interval; }