исправлено отображение на ie

This commit is contained in:
Alexey Kasyanchuk
2017-02-03 12:29:51 +03:00
parent fae2eda683
commit 80e9583395
13 changed files with 6 additions and 6 deletions

16
bt/token.js Normal file
View File

@ -0,0 +1,16 @@
'use strict'
module.exports = class {
constructor() {
this.generate()
setInterval(()=> this.generate(), 60000*15)
}
isValid(t) {
return t.toString() === this.token.toString()
}
generate() {
this.token = new Buffer([parseInt(Math.random()*200), parseInt(Math.random()*200)])
}
}