mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Typo fix of visbility.
This commit is contained in:
parent
d89ee16bbc
commit
aed448cc50
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@
|
|||
if (document.visibilityState === "visible") {
|
||||
setTimeout(function() {
|
||||
if (_this2.connectionIsStale() || !_this2.connection.isOpen()) {
|
||||
logger.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = " + document.visibilityState);
|
||||
logger.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = " + document.visibilityState);
|
||||
_this2.connection.reopen();
|
||||
}
|
||||
}, 200);
|
||||
|
|
|
@ -105,7 +105,7 @@ class ConnectionMonitor {
|
|||
if (document.visibilityState === "visible") {
|
||||
setTimeout(() => {
|
||||
if (this.connectionIsStale() || !this.connection.isOpen()) {
|
||||
logger.log(`ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = ${document.visibilityState}`)
|
||||
logger.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`)
|
||||
this.connection.reopen()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue