This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new e855cf586 [OPENMEETINGS-2677] NoSleep is enabled on first click
e855cf586 is described below
commit e855cf586a7f7d804f88437fca0aba1dd699cd6e
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Mon Dec 12 13:38:51 2022 +0700
[OPENMEETINGS-2677] NoSleep is enabled on first click
---
openmeetings-web/src/main/front/room/src/room.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/openmeetings-web/src/main/front/room/src/room.js
b/openmeetings-web/src/main/front/room/src/room.js
index 19d55ae30..88e9b279d 100644
--- a/openmeetings-web/src/main/front/room/src/room.js
+++ b/openmeetings-web/src/main/front/room/src/room.js
@@ -159,7 +159,7 @@ function _load() {
$(window).on('keydown.om-sip', SipDialer.keyDown);
$(window).on('keyup.om-sip', SipDialer.keyUp);
$(document).click(_mouseHandler);
- _addNoSleep();
+ document.addEventListener('click', _addNoSleep, false);
SipDialer.init();
}
function _addNoSleep() {
@@ -168,6 +168,7 @@ function _addNoSleep() {
noSleep.enable();
}
function _removeNoSleep() {
+ document.removeEventListener('click', _addNoSleep, false);
if (noSleep) {
noSleep.disable();
noSleep = null;