errOptions.js 320 B

1234567891011121314151617181920
  1. window.errOptions = [
  2. {
  3. name: /^unhandledrejection$/
  4. },
  5. {
  6. message: /(^Script error\.$|WeixinJSBridge|window)/
  7. },
  8. {
  9. name: /^TypeError/,
  10. message: /(scrollTop|\$el|readonly property\.$|Type error)/
  11. },
  12. {
  13. req: {
  14. method: /^GET$/
  15. },
  16. res: {
  17. status: /^(0|421)$/
  18. }
  19. }
  20. ];