Fix ES5 compatibility
This commit is contained in:
parent
faccb8378e
commit
f071203265
@ -48,7 +48,7 @@ weechat.factory('connection',
|
|||||||
// too high, this time should be reduced if determined the weechat
|
// too high, this time should be reduced if determined the weechat
|
||||||
// is lower than 2.9
|
// is lower than 2.9
|
||||||
// This time also includes the time it takes to generate the hash
|
// This time also includes the time it takes to generate the hash
|
||||||
const WAIT_TIME_OLD_WEECHAT = 200; //ms
|
var WAIT_TIME_OLD_WEECHAT = 200; //ms
|
||||||
|
|
||||||
// Wait long enough to assume we are on a version < 2.9
|
// Wait long enough to assume we are on a version < 2.9
|
||||||
var handShakeTimeout = setTimeout(function () {
|
var handShakeTimeout = setTimeout(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user