Use window.log in browser context, turn on console eslint rule
This commit is contained in:
parent
4320b125dd
commit
5933a34a18
71 changed files with 816 additions and 559 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
if (this.context) {
|
||||
this.context.close().then(() => {
|
||||
console.log('audio context closed');
|
||||
window.log.info('audio context closed');
|
||||
});
|
||||
}
|
||||
this.context = null;
|
||||
|
@ -97,10 +97,12 @@
|
|||
this.close();
|
||||
|
||||
if (error && error.name === 'PermissionDeniedError') {
|
||||
console.log('RecorderView.onError: Microphone access is not allowed!');
|
||||
window.log.warn(
|
||||
'RecorderView.onError: Microphone access is not allowed!'
|
||||
);
|
||||
window.showPermissionsPopup();
|
||||
} else {
|
||||
console.log(
|
||||
window.log.error(
|
||||
'RecorderView.onError:',
|
||||
error && error.stack ? error.stack : error
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue