mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-03 06:24:20 +08:00
✨ feat: 添加 Firefox 相关噪音过滤规则
- 在 Sentry 错误过滤列表中新增 `__firefox__` 和 `reader.checkReadability` 字符串匹配规则 - 在正则过滤规则中增加 `/__firefox__/i`、`/reader\.checkReadability/i` 和 `/window\.__firefox__/i` 模式 - 同步更新 `sentry-loader.js` 和 `sentry-init.js` 两处过滤配置,保持行为一致 - 有效减少 Firefox 浏览器扩展注入脚本及阅读模式检查产生的误报错误上报
This commit is contained in:
@@ -484,6 +484,9 @@ function initSentry() {
|
||||
/autofillFieldData\.autoCompleteType\.includes/i,
|
||||
/Can't find variable: currentInset/i,
|
||||
/Can't find variable: CONFIG/i,
|
||||
/__firefox__/i,
|
||||
/reader\.checkReadability/i,
|
||||
/window\.__firefox__/i,
|
||||
// Android WebView / 浏览器注入脚本噪音
|
||||
/Error invoking post/i,
|
||||
/Method not found/i,
|
||||
|
||||
@@ -65,7 +65,9 @@
|
||||
'can\'t find variable: config',
|
||||
'error invoking post',
|
||||
'method not found',
|
||||
'swal'
|
||||
'swal',
|
||||
'__firefox__',
|
||||
'reader.checkReadability'
|
||||
];
|
||||
|
||||
function toLowerSafe(value) {
|
||||
@@ -538,6 +540,9 @@
|
||||
/autofillFieldData\.autoCompleteType\.includes/i,
|
||||
/Can't find variable: currentInset/i,
|
||||
/Can't find variable: CONFIG/i,
|
||||
/__firefox__/i,
|
||||
/reader\.checkReadability/i,
|
||||
/window\.__firefox__/i,
|
||||
// Android WebView / 浏览器注入脚本噪音
|
||||
/Error invoking post/i,
|
||||
/Method not found/i,
|
||||
|
||||
Reference in New Issue
Block a user