fetch-detector
Detector fetch based on browser version
Last updated 9 years ago by camsong .
MIT · Repository · Bugs · Original npm
$ cnpm install fetch-detector 
SYNC missed versions from official npm registry.

Fetch Detector

有些浏览器虽然支持 Fetch API 但不完整,如 Chrome 45 和 Firefox 33 版本 response 中的中文会乱码2。本库的作用是只在 Chrome >= 46,Firefox >= 39 时才开启原生 Fetch,否则使用 XHR polyfill。

Install

npm install 'fetch-detector'

Usage

一定要与 fetch-ie8 一起使用, 并且放到 fetch-ie8 前引用。

import 'fetch-detector'
import 'fetch-ie8'

License

MIT

Current Tags

  • 1.0.1                                ...           latest (9 years ago)

1 Versions

  • 1.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org