mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
fix(developers): Sentry unable to retrieve stacktrace frames in some cases.
This commit is contained in:
parent
ebfdb864ef
commit
f52edce8fc
14
js/app.js
14
js/app.js
@ -8,13 +8,17 @@ ready(function(){
|
|||||||
release: require('./package.json').version,
|
release: require('./package.json').version,
|
||||||
beforeSend: (event) => {
|
beforeSend: (event) => {
|
||||||
event.exception.values = event.exception.values.map((value) => {
|
event.exception.values = event.exception.values.map((value) => {
|
||||||
value.stacktrace.frames = value.stacktrace.frames.map((frame) => {
|
if (value.stacktrace) {
|
||||||
frame.filename = frame.filename.replace(/^.*ryzen(|-)controller\//g, "");
|
value.stacktrace.frames = value.stacktrace.frames.map((frame) => {
|
||||||
return frame;
|
frame.filename = frame.filename.replace(/^.*ryzen(|-)controller\//g, "");
|
||||||
})
|
return frame;
|
||||||
|
});
|
||||||
|
}
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
event.request.url = event.request.url.replace(/^.*ryzen(|-)controller\//g, "")
|
if (event.request.url) {
|
||||||
|
event.request.url = event.request.url.replace(/^.*ryzen(|-)controller\//g, "");
|
||||||
|
}
|
||||||
return event;
|
return event;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user