mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
移除sentry上报信息可能出现的token
This commit is contained in:
parent
5f380b55d1
commit
d54faf8044
|
@ -10,6 +10,13 @@ export function init() {
|
|||
integrations: [new Integrations.BrowserTracing()],
|
||||
release: version,
|
||||
tracesSampleRate: 1.0,
|
||||
beforeBreadcrumb(breadcrumb, hint?) {
|
||||
if (breadcrumb.data && breadcrumb.data.url) {
|
||||
const url = breadcrumb.data.url.replace(/token=.*/, '');
|
||||
breadcrumb.data.url = url;
|
||||
}
|
||||
return breadcrumb;
|
||||
},
|
||||
});
|
||||
|
||||
// monaco 编辑器配置cdn和locale
|
||||
|
|
Loading…
Reference in New Issue
Block a user