mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-05-24 00:00:05 +08:00
fix: this is not allowed before super()
This commit is contained in:
+1
-1
@@ -15,8 +15,8 @@ import OTP from './otp';
|
|||||||
* @return {OTP}
|
* @return {OTP}
|
||||||
*/
|
*/
|
||||||
constructor(interval=30, ...args) {
|
constructor(interval=30, ...args) {
|
||||||
this.interval = interval;
|
|
||||||
super(...args);
|
super(...args);
|
||||||
|
this.interval = interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user