chore(web): ts-ignore for downlevel Sentry calls

This commit is contained in:
Marc Durdin 2022-07-07 10:58:19 +10:00
parent fced98e741
commit 4875fad407

View file

@ -190,6 +190,7 @@ namespace com.keyman {
function reportingConsoleError() {
let args = Array.prototype.slice.call(arguments);
if(_this._enabled) {
//@ts-ignore
Sentry.captureException(reduceConsoleArgs(args), { level: 'error' });
}
return oldConsoleError.apply(console, args);
@ -200,6 +201,7 @@ namespace com.keyman {
function reportingConsoleWarn() {
let args = Array.prototype.slice.call(arguments);
if(_this._enabled) {
//@ts-ignore
Sentry.captureMessage(reduceConsoleArgs(args), { level: 'warning' });
}
return oldConsoleWarn.apply(console, args);