Merge pull request #20152 from prlanzarin/u27/fix/Arthurk12-live-1809

fix(bbb-html5): correct parameter type for wake lock log codes
This commit is contained in:
Anton Georgiev 2024-05-02 16:03:57 -04:00 committed by GitHub
commit 0dc21a34d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,8 @@ const WAKELOCK_ERRORS = {
REQUEST_FAILED: {
locale: 'wakeLockAcquireFailed',
error: 'wake_lock_request_error',
}
}
},
};
class WakeLock {
constructor() {
@ -52,7 +52,7 @@ class WakeLock {
async request() {
if (!this.isSupported()) {
logger.warn({
logCode: WAKELOCK_ERRORS.NOT_SUPPORTED,
logCode: WAKELOCK_ERRORS.NOT_SUPPORTED.error,
}, 'Wake lock API not supported');
return {
...WAKELOCK_ERRORS.NOT_SUPPORTED,
@ -67,7 +67,7 @@ class WakeLock {
document.addEventListener('fullscreenchange', this.handleVisibilityChanged.bind(this));
} catch (err) {
logger.warn({
logCode: WAKELOCK_ERRORS.REQUEST_FAILED,
logCode: WAKELOCK_ERRORS.REQUEST_FAILED.error,
extraInfo: {
errorName: err.name,
errorMessage: err.message,