mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03: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,
|
||||
beforeSend: (event) => {
|
||||
event.exception.values = event.exception.values.map((value) => {
|
||||
value.stacktrace.frames = value.stacktrace.frames.map((frame) => {
|
||||
frame.filename = frame.filename.replace(/^.*ryzen(|-)controller\//g, "");
|
||||
return frame;
|
||||
})
|
||||
if (value.stacktrace) {
|
||||
value.stacktrace.frames = value.stacktrace.frames.map((frame) => {
|
||||
frame.filename = frame.filename.replace(/^.*ryzen(|-)controller\//g, "");
|
||||
return frame;
|
||||
});
|
||||
}
|
||||
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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user