PageSourceSearch

https://www.qcc.com/web/js/collect-error-v6.js

js qcc.com collected 2026-10-02 02:50:41 UTC 2,436 bytes, 89 lines download raw bytes

1/* eslint-disable */
2window.colloctError = function (error) {
3  var ignoreArr = [
4    'cefQuery is not defined',
5    'Cannot redefine property: platform',
6    "reading 'innerText'",
7    "Unexpected token 'export'",
8    'se-extension',
9    'chrome-extension',
10    'moz-extension',
11    'echarts.js',
12    'Request aborted',
13    'googletag',
14    'The quota has been exceeded',
15    'cwebview',
16    'MTTATTRIBUTE_Done',
17    'jsFinder',
18    '后裔采集器',
19    '操作太快,请稍后再试',
20    '未知错误',
21    '权限不足',
22    '内存不足',
23    '未连接到互联网,请检查网络连接',
24    '该功能需要登录'
25  ]
26  for (var i = 0; i < ignoreArr.length; i++) {
27    if (error.stack && error.stack.toString().indexOf(ignoreArr[i]) !== -1) {
28      return
29    }
30  }
31
32  var state = (window.AppRuntimeInstance && window.AppRuntimeInstance.store && window.AppRuntimeInstance.store.state) || {}
33  var storeString = JSON.stringify(state)
34  var storeFlag = false
35  if (storeString.length < 3500) {
36    storeFlag = storeString
37  }
38  // 创建兼容 IE11 的 AJAX 请求
39  var xhr = new XMLHttpRequest();
40  xhr.open('POST', '/web/log-client-error', true);
41  xhr.setRequestHeader('Content-Type', 'application/json');
42  xhr.send(JSON.stringify({
43    message: error.message,
44    stack: error.stack,
45    extra: {
46      version: window.version,
47      storeFlag: storeFlag,
48      storeLength: storeString.length,
49      originalUrl: window.location.href,
50      path: window.location.pathname,
51      message: error.message
52    }
53  }));
54}
55
56function logScriptError(event) {
57  var target = event.target || event.srcElement;
58  var isElementTarget = target instanceof HTMLScriptElement || target instanceof HTMLLinkElement;
59  if (isElementTarget) {
60    var url = target.src || target.href;
61    
62    // 创建兼容 IE11 的 AJAX 请求
63    var xhr = new XMLHttpRequest();
64    xhr.open('POST', '/web/log-client-error', true);
65    xhr.setRequestHeader('Content-Type', 'application/json');
66    xhr.send(JSON.stringify({
67      message: 'assets-load-error',
68      extra: {
69        version: window.version,
70        originalUrl: window.location.href,
71        path: url,
72        message: event.error && event.error.message
73      }
74    }));
75  }
76}
77
78window.addEventListener(
79  'error',
80  function (e) {
81    if (e && e.error) {
82      setTimeout(function () {
83        window.colloctError(e.error)
84      }, 500)
85    }
86    logScriptError(e)
87  },
88  true
89)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.