WebViewer Version: 8.2.0
Do you have an issue with a specific file(s)? N/A
Can you reproduce using one of our samples or online demos? N/A
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? N/A
Is your issue related to a front-end framework? N/A
Is your issue related to annotations? N/A
Please give a brief summary of your issue:
How do I catch and log the warnings and errors that web viewer outputs on the console?
Please describe your issue and provide steps to reproduce it:
I have tried the following adding an event listener to the window object:
window.addEventListener('error', (e) => {
console.log(e.message);
});
As well as override the console.warn function with my own.
function newWarn() {
alert('test');
}
console.oldWarn = console.warn;
console.warn = newWarn;
But both do not work. Any guidance is appreciated.
Please provide a link to a minimal sample where the issue is reproducible: N/A