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:
commit
0dc21a34d6
@ -11,8 +11,8 @@ const WAKELOCK_ERRORS = {
|
|||||||
REQUEST_FAILED: {
|
REQUEST_FAILED: {
|
||||||
locale: 'wakeLockAcquireFailed',
|
locale: 'wakeLockAcquireFailed',
|
||||||
error: 'wake_lock_request_error',
|
error: 'wake_lock_request_error',
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
class WakeLock {
|
class WakeLock {
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -52,7 +52,7 @@ class WakeLock {
|
|||||||
async request() {
|
async request() {
|
||||||
if (!this.isSupported()) {
|
if (!this.isSupported()) {
|
||||||
logger.warn({
|
logger.warn({
|
||||||
logCode: WAKELOCK_ERRORS.NOT_SUPPORTED,
|
logCode: WAKELOCK_ERRORS.NOT_SUPPORTED.error,
|
||||||
}, 'Wake lock API not supported');
|
}, 'Wake lock API not supported');
|
||||||
return {
|
return {
|
||||||
...WAKELOCK_ERRORS.NOT_SUPPORTED,
|
...WAKELOCK_ERRORS.NOT_SUPPORTED,
|
||||||
@ -67,7 +67,7 @@ class WakeLock {
|
|||||||
document.addEventListener('fullscreenchange', this.handleVisibilityChanged.bind(this));
|
document.addEventListener('fullscreenchange', this.handleVisibilityChanged.bind(this));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.warn({
|
logger.warn({
|
||||||
logCode: WAKELOCK_ERRORS.REQUEST_FAILED,
|
logCode: WAKELOCK_ERRORS.REQUEST_FAILED.error,
|
||||||
extraInfo: {
|
extraInfo: {
|
||||||
errorName: err.name,
|
errorName: err.name,
|
||||||
errorMessage: err.message,
|
errorMessage: err.message,
|
||||||
|
Loading…
Reference in New Issue
Block a user