mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-27 16:27:49 +00:00
chore(web): ts-ignore for downlevel Sentry calls
This commit is contained in:
parent
fced98e741
commit
4875fad407
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue