Fixes error thrown if live poll broadcast focus event is triggered (#4896)

This commit is contained in:
buddh4 2021-02-19 12:18:31 +01:00 committed by GitHub
parent b1e9ddc20b
commit 68e64bf2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
--------------------------------
- Fix #4893: Richtext extension events are ignored when using deprecated maxLength option
- Fix #4896: Error thrown if live poll broadcast focus event is triggered
1.8.0-beta.2 (February 18, 2021)

View File

@ -97,7 +97,7 @@ humhub.module('live.poll', function (module, require, $) {
break;
case EVENT_TYPE_FOCUS:
// Another tab was focused, so increase delay and reset timeout
that.resetPollTimeout(this.options.maxInterval);
that.resetPollTimeout(that.options.maxInterval);
break;
case EVENT_TYPE_UPDATE:
// We received a response from another tab