fix: subclass constructor params

This commit is contained in:
lancegin 2017-06-29 08:03:35 +08:00
parent 4e7154cc3e
commit 990bea095c

View File

@ -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;
}